@@ -2687,6 +2687,8 @@ def OnSave(event):
26872687 '''Respond to the Instrument Parameters Operations/Save Profile menu
26882688 item: writes current parameters to a .instprm file
26892689 It does not write Bank n: on # line & thus can be used any time w/o clash of bank nos.
2690+
2691+ note: doesn't currently write extedened instrument parameters i.e. pdabc dictionary
26902692 '''
26912693 pth = G2G .GetExportPath (G2frame )
26922694 dlg = wx .FileDialog (G2frame , 'Set name to save GSAS-II instrument parameters file' , pth , '' ,
@@ -3072,19 +3074,24 @@ def MakeLamSizer():
30723074 labelLst .append ('2-theta' )
30733075 elemKeysLst .append (['2-theta' ,1 ])
30743076 dspLst .append ([10 ,2 ])
3075- refFlgElem .append (None )
3076- if 'pdabc' in Inst2 :
3077- Items = ['sig-0' ,'sig-1' ,'sig-2' ,'sig-q' ,'X' ,'Y' ,'Z' ]
3078- subSizer .Add (wx .StaticText (G2frame .dataWindow ,- 1 ,' difC: ' ),0 ,WACV )
3079- txt = '%8.2f' % (insVal ['difC' ])
3080- subSizer .Add (wx .StaticText (G2frame .dataWindow ,- 1 ,txt .strip ()),0 ,WACV )
3081- labelLst .append ('difC' )
3082- elemKeysLst .append (['difC' ,1 ])
3083- dspLst .append ([10 ,2 ])
3084- refFlgElem .append (None )
3085- subSizer .Add (wx .StaticText (G2frame .dataWindow ,- 1 ,' alpha, beta: fixed by table' ),0 ,WACV )
3086- else :
3087- Items = ['difC' ,'difA' ,'difB' ,'Zero' ,'alpha' ,'beta-0' ,'beta-1' ,'beta-q' ,'sig-0' ,'sig-1' ,'sig-2' ,'sig-q' ,'X' ,'Y' ,'Z' ]
3077+ refFlgElem .append (None )
3078+
3079+ #note: this if statement is commented out as current implementation of pdabc is not
3080+ # intended to exclude diffing difC, difA, difB, etc. from refinement.
3081+ # TODO: check this is OK with other applications (work around is "show multiple" in GUI: which exposes everything")
3082+ # if 'pdabc' in Inst2:
3083+ # Items = ['sig-0','sig-1','sig-2','sig-q','X','Y','Z']
3084+ # subSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' difC: '),0,WACV)
3085+ # txt = '%8.2f'%(insVal['difC'])
3086+ # subSizer.Add(wx.StaticText(G2frame.dataWindow,-1,txt.strip()),0,WACV)
3087+ # labelLst.append('difC')
3088+ # elemKeysLst.append(['difC',1])
3089+ # dspLst.append([10,2])
3090+ # refFlgElem.append(None)
3091+ # subSizer.Add(wx.StaticText(G2frame.dataWindow,-1,' alpha, beta: fixed by table'),0,WACV)
3092+ # else:
3093+ Items = ['difC' ,'difA' ,'difB' ,'Zero' ,'alpha' ,'beta-0' ,'beta-1' ,'beta-q' ,'sig-0' ,'sig-1' ,'sig-2' ,'sig-q' ,'X' ,'Y' ,'Z' ]
3094+
30883095 mainSizer .Add ((5 ,5 ),0 )
30893096 mainSizer .Add (subSizer )
30903097 mainSizer .Add ((5 ,5 ),0 )
0 commit comments