|
24 | 24 | get_foil_holes_from_grid_square as _get_foil_holes_from_grid_square, |
25 | 25 | get_grid_squares as _get_grid_squares, |
26 | 26 | get_grid_squares_from_dcg as _get_grid_squares_from_dcg, |
27 | | - get_machine_config_for_instrument, |
28 | 27 | get_tiff_file as _get_tiff_file, |
29 | 28 | get_upstream_file as _get_upstream_file, |
30 | 29 | remove_session_by_id, |
31 | 30 | ) |
32 | 31 | from murfey.server.ispyb import DB as ispyb_db, get_all_ongoing_visits |
33 | 32 | from murfey.server.murfey_db import murfey_db |
34 | 33 | from murfey.util import sanitise |
35 | | -from murfey.util.config import MachineConfig |
| 34 | +from murfey.util.config import get_machine_config |
36 | 35 | from murfey.util.db import ( |
37 | 36 | ClassificationFeedbackParameters, |
38 | 37 | ClientEnvironment, |
@@ -78,8 +77,8 @@ def connections_check(): |
78 | 77 | @router.get("/instruments/{instrument_name}/machine") |
79 | 78 | def machine_info_by_instrument( |
80 | 79 | instrument_name: MurfeyInstrumentName, |
81 | | -) -> Optional[MachineConfig]: |
82 | | - return get_machine_config_for_instrument(instrument_name) |
| 80 | +): |
| 81 | + return get_machine_config(instrument_name)[instrument_name] |
83 | 82 |
|
84 | 83 |
|
85 | 84 | @router.get("/instruments/{instrument_name}/visits_raw", response_model=List[Visit]) |
|
0 commit comments