File tree 1 file changed +4
-0
lines changed
1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 27
27
from sans .state .StateObjects .StateWavelength import StateWavelength
28
28
from sans .state .StateObjects .state_instrument_info import StateInstrumentInfo
29
29
from sans .state .StateObjects .StateBackgroundSubtraction import StateBackgroundSubtraction
30
+ from sans .state .StateObjects .StatePolarization import StatePolarization
30
31
from sans .state .automatic_setters import automatic_setters
31
32
32
33
@@ -51,6 +52,7 @@ def __init__(self):
51
52
self .convert_to_q : StateConvertToQ = StateConvertToQ ()
52
53
self .compatibility : StateCompatibility = StateCompatibility ()
53
54
self .background_subtraction : StateBackgroundSubtraction = StateBackgroundSubtraction ()
55
+ self .polarization : StatePolarization = StatePolarization ()
54
56
55
57
def validate (self ):
56
58
is_invalid = dict ()
@@ -78,6 +80,8 @@ def validate(self):
78
80
is_invalid .update ("State: The state object needs to include a StateConvertToQ object." )
79
81
if not self .background_subtraction :
80
82
is_invalid .update ("State: The state object needs to include a StateBackgroundSubtraction object." )
83
+ if not self .polarization :
84
+ is_invalid .update ("State: The state object needs to include a StatePolarization object." )
81
85
82
86
# We don't enforce a compatibility mode, we just create one if it does not exist
83
87
if not self .compatibility :
You can’t perform that action at this time.
0 commit comments