@@ -630,11 +630,12 @@ def ExtVal(Ekey,valSizer,fmt,lim):
630630 Ekey = ['Eg' ,]
631631 else :
632632 Ekey = ['Eg' ,'Es' ]
633- extSizer .Add (ExtVal (Ekey ,val2Sizer ,'g' ,[0. ,1 . ]),0 )
633+ extSizer .Add (ExtVal (Ekey ,val2Sizer ,'g' ,[0. ,100 . ]),0 )
634634 extSizer .Add (wx .StaticText (DData ,label = ' Small F dynamical scattering correction:' ))
635635 val3Sizer = wx .BoxSizer (wx .HORIZONTAL )
636- Ekey = ['Ma' ,'Mb' ]
637- extSizer .Add (ExtVal (Ekey ,val3Sizer ,'f' ,[- 100. ,100. ]),0 ,)
636+ if 'Primary' in UseList [G2frame .hist ]['Extinction' ][1 ]:
637+ Ekey = ['Ma' ,'Mb' ,]
638+ extSizer .Add (ExtVal (Ekey ,val3Sizer ,'f' ,[- 1. ,10. ]),0 ,)
638639 else : #PWDR
639640 extSizer = wx .BoxSizer (wx .HORIZONTAL )
640641 extRef = wx .CheckBox (DData ,wx .ID_ANY ,label = ' Extinction: ' )
@@ -918,23 +919,25 @@ def OnFixVals(event):
918919#patch
919920 if 'Use' not in UseList [G2frame .hist ]:
920921 UseList [G2frame .hist ]['Use' ] = True
921- if 'LeBail' not in UseList [G2frame .hist ]:
922- UseList [G2frame .hist ]['LeBail' ] = False
923922 if 'Babinet' not in UseList [G2frame .hist ]:
924923 UseList [G2frame .hist ]['Babinet' ] = {'BabA' :[0.0 ,False ],'BabU' :[0.0 ,False ]}
925924 if 'Fix FXU' not in UseList [G2frame .hist ]:
926925 UseList [G2frame .hist ]['Fix FXU' ] = ' '
927926 if 'FixedSeqVars' not in UseList [G2frame .hist ]:
928927 UseList [G2frame .hist ]['FixedSeqVars' ] = []
929- if 'Flack' not in UseList [G2frame .hist ]:
930- UseList [G2frame .hist ]['Flack' ] = [0.0 ,False ]
931- if 'Twins' not in UseList [G2frame .hist ]:
932- UseList [G2frame .hist ]['Twins' ] = [[np .array ([[1 ,0 ,0 ],[0 ,1 ,0 ],[0 ,0 ,1 ]]),[1.0 ,False ]],]
933- if 'Layer Disp' not in UseList [G2frame .hist ]:
934- UseList [G2frame .hist ]['Layer Disp' ] = [0.0 ,False ]
935- if 'Ma' not in UseList [G2frame .hist ]['Extinction' ][2 ]:
936- UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Ma' :[1.0 ,False ]})
937- UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Mb' :[0.0 ,False ]})
928+ if 'HKLF' in UseList [G2frame .hist ]['Histogram' ]:
929+ if 'Flack' not in UseList [G2frame .hist ]:
930+ UseList [G2frame .hist ]['Flack' ] = [0.0 ,False ]
931+ if 'Twins' not in UseList [G2frame .hist ]:
932+ UseList [G2frame .hist ]['Twins' ] = [[np .array ([[1 ,0 ,0 ],[0 ,1 ,0 ],[0 ,0 ,1 ]]),[1.0 ,False ]],]
933+ if 'Ma' not in UseList [G2frame .hist ]['Extinction' ][2 ]:
934+ UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Ma' :[1.0 ,False ]})
935+ UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Mb' :[0.0 ,False ]})
936+ elif 'PWDR' in UseList [G2frame .hist ]['Histogram' ]:
937+ if 'LeBail' not in UseList [G2frame .hist ]:
938+ UseList [G2frame .hist ]['LeBail' ] = False
939+ if 'Layer Disp' not in UseList [G2frame .hist ]:
940+ UseList [G2frame .hist ]['Layer Disp' ] = [0.0 ,False ]
938941#end patch
939942 ifkeV = 'E' in UseList [G2frame .hist ].get ('Type' ,'' )
940943 offMsg = ''
0 commit comments