Ignore:
Timestamp:
Apr 22, 2021 7:11:38 PM (6 months ago)
Author:
toby
Message:

do not change image formatName

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/GSASIIdataGUI.py

    r4888 r4889  
    11391139            rd.Phase['General']['Name'] = G2obj.MakeUniqueLabel(PhaseName,phaseNameList)
    11401140            if rd.Phase['General']['SGData']['SpGrp'] in G2spc.spg2origins:
    1141                 choice = G2G.ChooseOrigin(self,rd)
    1142                 if choice is None: return # dialog cancelled
    1143                 rd.Phase = choice
     1141                try:
     1142                    choice = G2G.ChooseOrigin(self,rd)
     1143                    if choice is None: return # dialog cancelled
     1144                    rd.Phase = choice
     1145                except:
     1146                    print('ChooseOrigin failed. Check your atom types')
    11441147            PhaseName = rd.Phase['General']['Name'][:]
    11451148            newPhaseList.append(PhaseName)
     
    39063909                        del(newImage)
    39073910                        if self.imageDefault:
    3908                             Data = copy.copy(self.imageDefault)
     3911                            Data.update(copy.deepcopy(self.imageDefault))
    39093912                        Data['formatName'] = 'GSAS-II image'
    39103913                        Data['showLines'] = True
Note: See TracChangeset for help on using the changeset viewer.