@@ -577,15 +577,15 @@ def OnExtRef(event):
577577 Obj = event .GetEventObject ()
578578 UseList [G2frame .hist ]['Extinction' ][1 ] = Obj .GetValue ()
579579
580- def ExtVal (Ekey ,valSizer ):
580+ def ExtVal (Ekey ,valSizer , fmt , lim ):
581581 for ekey in Ekey :
582582 Eref = wx .CheckBox (DData ,wx .ID_ANY ,label = ekey + ' : ' )
583583 Eref .SetValue (UseList [G2frame .hist ]['Extinction' ][2 ][ekey ][1 ])
584584 Indx [Eref .GetId ()] = [G2frame .hist ,ekey ]
585585 Eref .Bind (wx .EVT_CHECKBOX , OnEref )
586586 valSizer .Add (Eref ,0 ,WACV | wx .LEFT ,5 )
587- Eval = G2G .ValidatedTxtCtrl (DData ,UseList [G2frame .hist ]['Extinction' ][2 ][ekey ],0 ,
588- xmin = 0. ,nDig = (10 ,3 , 'g' ),typeHint = float )
587+ Eval = G2G .ValidatedTxtCtrl (DData ,UseList [G2frame .hist ]['Extinction' ][2 ][ekey ],0 ,xmax = lim [ 1 ],
588+ xmin = lim [ 0 ] ,nDig = (10 ,4 , fmt ),typeHint = float )
589589 valSizer .Add (Eval ,0 ,WACV )
590590 return valSizer
591591
@@ -630,16 +630,11 @@ def ExtVal(Ekey,valSizer):
630630 Ekey = ['Eg' ,]
631631 else :
632632 Ekey = ['Eg' ,'Es' ]
633- extSizer .Add (ExtVal (Ekey ,val2Sizer ),0 )
634- #if UseList[G2frame.hist]['Type'] == 'SEC': #Should be only for microED data, but Type is wrong = 'SXC'
635- if 'Ma' not in UseList [G2frame .hist ]['Extinction' ][2 ]:
636- UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Ma' :[0.0 ,False ]})
637- if 'Mb' not in UseList [G2frame .hist ]['Extinction' ][2 ]:
638- UseList [G2frame .hist ]['Extinction' ][2 ].update ({'Mb' :[1.0 ,False ]})
633+ extSizer .Add (ExtVal (Ekey ,val2Sizer ,'g' ,[0. ,1. ]),0 )
639634 extSizer .Add (wx .StaticText (DData ,label = ' Small F dynamical scattering correction:' ))
640635 val3Sizer = wx .BoxSizer (wx .HORIZONTAL )
641636 Ekey = ['Ma' ,'Mb' ]
642- extSizer .Add (ExtVal (Ekey ,val3Sizer ),0 )
637+ extSizer .Add (ExtVal (Ekey ,val3Sizer , 'f' ,[ - 100. , 100. ] ),0 , )
643638 else : #PWDR
644639 extSizer = wx .BoxSizer (wx .HORIZONTAL )
645640 extRef = wx .CheckBox (DData ,wx .ID_ANY ,label = ' Extinction: ' )
@@ -937,6 +932,9 @@ def OnFixVals(event):
937932 UseList [G2frame .hist ]['Twins' ] = [[np .array ([[1 ,0 ,0 ],[0 ,1 ,0 ],[0 ,0 ,1 ]]),[1.0 ,False ]],]
938933 if 'Layer Disp' not in UseList [G2frame .hist ]:
939934 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 ]})
940938#end patch
941939 ifkeV = 'E' in UseList [G2frame .hist ].get ('Type' ,'' )
942940 offMsg = ''
0 commit comments