File tree 1 file changed +18
-0
lines changed
scripts/SANS/sans/state/StateObjects
1 file changed +18
-0
lines changed Original file line number Diff line number Diff line change @@ -42,13 +42,31 @@ def __init__(self):
42
42
self .efficiency = None
43
43
44
44
45
+ class StateFilter (StateComponent , metaclass = JsonSerializable ):
46
+ cell_length : None | int
47
+ gas_pressure : None | int
48
+ initial_polarization : None | str
49
+
50
+ def __init__ (self ):
51
+ super (StateFilter , self ).__init__ ()
52
+ # Relevant to He3 filters (Polarisers and Analysers)
53
+ self .cell_length = None
54
+ self .gas_pressure = None
55
+ # Relevant to all polarisers and analysers.
56
+ self .initial_polarization = None
57
+
58
+
45
59
class StatePolarization (metaclass = JsonSerializable ):
46
60
flipper_configuration : None | str
47
61
spin_configuration : None | str
48
62
flippers : list [StateComponent ]
63
+ polarizer : None | StateFilter
64
+ analyzer : None | StateFilter
49
65
50
66
def __init__ (self ):
51
67
super (StatePolarization , self ).__init__ ()
52
68
self .flipper_configuration = None
53
69
self .spin_configuration = None
70
+ self .analyzer = None
71
+ self .polarizer = None
54
72
self .flippers = []
You can’t perform that action at this time.
0 commit comments