Commit f50aaaa
1663 i09 energy (#1672)
* 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
* group and reuse fixture, add J09 controller and tests
* there is no reason to set mock value to zero
* spacing fix
* remove print
* add gap tests
* add controller, energy and polarisation to i09_2 configuration
* move path to top
* add model_validation
* remove debug
* Update docstring for energy_jid function
* Update nc parameter and phase calculation logic
Change 'nc' parameter to negative ROW_PHASE_CIRCULAR and adjust phase calculation based on pol.
* Refactor Lookuptable class documentation
Removed outdated docstring from Lookuptable class and updated initialization docstring for I10EnergyMotorLookup class.
* update expected lookup table after sign change
* 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
* fix tests
* fix i09 controller and test
* reuse fixture
* Improve EnergyCoverageEntry to have a poly serializer and EnergyCoverage to use float as key
* Add type checking to i10Apple2 phase
* Removed commente out code
* Update i10 id tests to use json files rather than pickle files so they are human readable
* Remove comments
* 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]>
* Fixed formatting
* Improved code coverage
* Simplified ID lookup table logic
* Updated doc strings, tidy tests and variable names
* Made default files a constant
* added gap and phase lookup
* Update logging messages
* Removed duplicate test logic
* Decoupled path from LookupTableConfig, updated convert_csv_to_lookup to use file_contents again
* Updated doc strings
* Clean up imports
* fixed test
* update and reuse fixture
* change I09 to use json data
* fix controller
* add test for Path not given
* correct test
* typing
* modify _setpol to go to lh first for i09 id
* Rename class and update comments for clarity
* Remove POLY_DEG list from test_i09_apple2.py
Removed the POLY_DEG list from the test file.
* fix lint
* remove I09EnergyMotorLookup and move phase generation into EnergyMotorlookup
* move lookup table path into lut_config
* revert lookuptable with path
* introduce spacing to data
* Update src/dodal/devices/util/lookup_tables_apple2.py
Co-authored-by: oliwenmandiamond <[email protected]>
* Update src/dodal/devices/util/lookup_tables_apple2.py
Co-authored-by: oliwenmandiamond <[email protected]>
* remove J09defaultlookuptable
* remove default in test
* lint
* update ophyd
* Apply suggestions from code review
Co-authored-by: oliwenmandiamond <[email protected]>
* fix typo
* fix file name and test
* correct pytest_plugin location
* undo unwanted change in i10_optics
---------
Co-authored-by: oliwenmandiamond <[email protected]>
Co-authored-by: Oli Wenman <[email protected]>1 parent 8967593 commit f50aaaa
File tree
15 files changed
+881
-173
lines changed- src/dodal
- beamlines
- devices
- util
- testing/fixtures
- tests/devices
- i10
- util
15 files changed
+881
-173
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
1 | 5 | | |
2 | 6 | | |
3 | 7 | | |
4 | 8 | | |
5 | 9 | | |
6 | 10 | | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
7 | 14 | | |
8 | 15 | | |
9 | 16 | | |
10 | 17 | | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
11 | 23 | | |
12 | 24 | | |
| 25 | + | |
13 | 26 | | |
14 | 27 | | |
15 | 28 | | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
16 | 33 | | |
17 | 34 | | |
18 | 35 | | |
| |||
55 | 72 | | |
56 | 73 | | |
57 | 74 | | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
449 | 449 | | |
450 | 450 | | |
451 | 451 | | |
| 452 | + | |
452 | 453 | | |
453 | 454 | | |
454 | 455 | | |
| |||
465 | 466 | | |
466 | 467 | | |
467 | 468 | | |
468 | | - | |
| 469 | + | |
469 | 470 | | |
470 | 471 | | |
471 | 472 | | |
472 | 473 | | |
473 | 474 | | |
474 | 475 | | |
475 | | - | |
| 476 | + | |
476 | 477 | | |
477 | 478 | | |
478 | 479 | | |
| |||
Whitespace-only changes.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 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 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
49 | | - | |
50 | | - | |
51 | | - | |
52 | | - | |
53 | 49 | | |
54 | 50 | | |
55 | 51 | | |
| |||
61 | 57 | | |
62 | 58 | | |
63 | 59 | | |
64 | | - | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
65 | 76 | | |
66 | 77 | | |
67 | 78 | | |
| |||
216 | 227 | | |
217 | 228 | | |
218 | 229 | | |
219 | | - | |
| 230 | + | |
220 | 231 | | |
221 | 232 | | |
222 | 233 | | |
| |||
305 | 316 | | |
306 | 317 | | |
307 | 318 | | |
308 | | - | |
309 | | - | |
| 319 | + | |
| 320 | + | |
310 | 321 | | |
311 | 322 | | |
312 | 323 | | |
| |||
321 | 332 | | |
322 | 333 | | |
323 | 334 | | |
| 335 | + | |
| 336 | + | |
324 | 337 | | |
325 | 338 | | |
326 | 339 | | |
327 | | - | |
328 | | - | |
329 | 340 | | |
330 | 341 | | |
331 | 342 | | |
| |||
337 | 348 | | |
338 | 349 | | |
339 | 350 | | |
| 351 | + | |
| 352 | + | |
340 | 353 | | |
341 | 354 | | |
342 | 355 | | |
| |||
346 | 359 | | |
347 | 360 | | |
348 | 361 | | |
| 362 | + | |
| 363 | + | |
349 | 364 | | |
350 | 365 | | |
351 | 366 | | |
| |||
357 | 372 | | |
358 | 373 | | |
359 | 374 | | |
360 | | - | |
| 375 | + | |
361 | 376 | | |
362 | | - | |
363 | | - | |
| 377 | + | |
| 378 | + | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
| 383 | + | |
| 384 | + | |
| 385 | + | |
| 386 | + | |
| 387 | + | |
| 388 | + | |
| 389 | + | |
| 390 | + | |
| 391 | + | |
| 392 | + | |
364 | 393 | | |
365 | 394 | | |
366 | 395 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 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 | + | |
Whitespace-only changes.
0 commit comments