Changeset 3994


Ignore:
Timestamp:
May 23, 2019 4:02:59 PM (3 years ago)
Author:
vondreele
Message:

clean finish if Dysonmia fails

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIphsGUI.py

    r3993 r3994  
    42584258       
    42594259        print('Run '+DYSNOMIA)       
    4260         subp.call([DYSNOMIA,prfName])
    4261        
    4262         G2pwd.MEMupdateReflData(prfName,reflData)   #auto run Fourier?
    4263         OnFourierMaps(event)       
     4260        subp.run([DYSNOMIA,prfName],startupinfo=subp.CREATE_NEW_PROCESS_GROUP)
     4261       
     4262        if G2pwd.MEMupdateReflData(prfName,reflData):
     4263            OnFourierMaps(event)           #auto run Fourier
     4264        else:
     4265            wx.MessageBox('Dysnomia failed to make new structure factors','Dysnomia Error',
     4266                style=wx.ICON_ERROR)
     4267       
    42644268       
    42654269################################################################################
  • trunk/GSASIIpwd.py

    r3993 r3994  
    29922992        reflDict[hash('%5d%5d%5d'%(ref[0],ref[1],ref[2]))] = iref
    29932993    fbaName = os.path.splitext(prfName)[0]+'.fba'
    2994     fba = open(fbaName,'r')
     2994    try:
     2995        fba = open(fbaName,'r')
     2996    except FileNotFoundError:
     2997        return False
    29952998    fba.readline()
    29962999    Nref = int(fba.readline()[:-1])
     
    30083011        reflData[refId][8] = Fosq
    30093012        reflData[refId][10] = phase
     3013    return True
    30103014   
    30113015#testing data
Note: See TracChangeset for help on using the changeset viewer.