Commit b68dfe8
Update ID lookup with type checking (#1707)
* add i09 look up table praiser
* move get_poly to lookuptable
* extracted EnergyMotorLookup base class from i10EnergyMotorLookup
* added new make_phase_tables function
* add test for correct table output
* remove_i09
* add docstring
* add test for helper functions
* add test for skipping
* spacing fix
* Refactor Lookuptable class documentation
Removed outdated docstring from Lookuptable class and updated initialization docstring for I10EnergyMotorLookup class.
* change lookup table schema to snake case
* replace dictionary with basemodel
* add tying
* add gap and phase
* fat finger correction
* Update ID lookup logic to use type checking
* Fix some tests
* Improve models to not use shared defaults
* undo syntax error
* Fixed test to check for success on loading i10 lut
* Simplified lut logic
* Added back generate_lookup_table function
* Fixed all tests but polarisation
* Updated doc strings
* Moved generic test from i10 to test_lookup_table_apple2
* Renamed lut_column_config to lut_config
* Updated more doc strings
* Fix default phase_file name and thus tests
* Use Pol in LookupTable rather than string
* Updated test_convert_csv_to_lookup_overwrite_name_convert_default to use Pol
* Update tests to use Pol rather str value
* Improve EnergyCoverageEntry to have a poly serializer and EnergyCoverage to use float as key
* Add type checking to i10Apple2 phase
* Removed commente out code
* Fixed poly test
* Fixed test_make_phase_tables_multiple_entries
* Added test_lookup_table_is_serialisable
* Update src/dodal/devices/util/lookup_tables_apple2.py
Co-authored-by: Raymond Fan <[email protected]>
---------
Co-authored-by: Relm-Arrowny <[email protected]>1 parent bdebc72 commit b68dfe8
File tree
6 files changed
+397
-397
lines changed- src/dodal
- beamlines
- devices
- i10
- util
- tests/devices
- i10
- util
6 files changed
+397
-397
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
37 | 41 | | |
38 | 42 | | |
39 | 43 | | |
| |||
117 | 121 | | |
118 | 122 | | |
119 | 123 | | |
120 | | - | |
121 | | - | |
122 | 124 | | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
123 | 128 | | |
124 | 129 | | |
125 | 130 | | |
| |||
181 | 186 | | |
182 | 187 | | |
183 | 188 | | |
184 | | - | |
185 | | - | |
186 | 189 | | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
187 | 193 | | |
188 | 194 | | |
189 | 195 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 220 | + | |
224 | 221 | | |
225 | 222 | | |
226 | 223 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | | - | |
| 27 | + | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | | - | |
44 | | - | |
| 43 | + | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | | - | |
48 | | - | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | | - | |
56 | | - | |
57 | | - | |
58 | | - | |
59 | | - | |
60 | | - | |
61 | | - | |
62 | | - | |
63 | | - | |
64 | | - | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
69 | | - | |
70 | | - | |
71 | | - | |
72 | | - | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | | - | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | 47 | | |
92 | 48 | | |
93 | 49 | | |
94 | 50 | | |
95 | | - | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
109 | 67 | | |
110 | | - | |
111 | 68 | | |
| 69 | + | |
| 70 | + | |
112 | 71 | | |
113 | | - | |
114 | 72 | | |
115 | 73 | | |
116 | 74 | | |
| |||
119 | 77 | | |
120 | 78 | | |
121 | 79 | | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
| 80 | + | |
| 81 | + | |
127 | 82 | | |
128 | 83 | | |
129 | 84 | | |
| |||
147 | 102 | | |
148 | 103 | | |
149 | 104 | | |
150 | | - | |
151 | | - | |
152 | 105 | | |
| 106 | + | |
153 | 107 | | |
154 | 108 | | |
155 | 109 | | |
156 | 110 | | |
157 | 111 | | |
158 | 112 | | |
159 | | - | |
160 | | - | |
161 | | - | |
| 113 | + | |
| 114 | + | |
162 | 115 | | |
163 | 116 | | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | 117 | | |
169 | 118 | | |
| 119 | + | |
| 120 | + | |
170 | 121 | | |
171 | 122 | | |
172 | 123 | | |
| |||
178 | 129 | | |
179 | 130 | | |
180 | 131 | | |
181 | | - | |
182 | | - | |
| 132 | + | |
183 | 133 | | |
184 | 134 | | |
185 | 135 | | |
| |||
0 commit comments