Ignore:
Timestamp:
Jun 1, 2020 7:16:10 PM (3 years ago)
Author:
toby
Message:

fix and speed up the "Complete Molecule" command; w/o for mult calc bug

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIconstrGUI.py

    r4431 r4455  
    3838import GSASIIdataGUI as G2gd
    3939import GSASIIctrlGUI as G2G
     40import GSASIIfiles as G2fl
    4041import GSASIIplot as G2plt
    4142import GSASIIobj as G2obj
     
    25112512            rd.errors = ""
    25122513            if not rd.ContentsValidator(filename):   # Report error
    2513                 G2fil.G2Print("Warning: File {} has a validation error".format(filename))
     2514                G2fl.G2Print("Warning: File {} has a validation error".format(filename))
    25142515                return
    25152516            if len(rd.selections) > 1:
     
    25212522            try:
    25222523                flag = rd.Reader(filename)
    2523             except:
    2524                 G2fil.G2Print("Warning: read of file {} failed".format(filename))
     2524            except Exception as msg:
     2525                G2fl.G2Print("Warning: read of file {} failed\n{}".format(
     2526                    filename,rd.errors))
     2527                if GSASIIpath.GetConfigValue('debug'):
     2528                    print(msg)
     2529                    import traceback
     2530                    print (traceback.format_exc())
     2531                    GSASIIpath.IPyBreak()
    25252532                return
    25262533
Note: See TracChangeset for help on using the changeset viewer.