File tree Expand file tree Collapse file tree 1 file changed +1
-9
lines changed
Expand file tree Collapse file tree 1 file changed +1
-9
lines changed Original file line number Diff line number Diff line change 88import logging
99import os
1010import shutil
11- from functools import lru_cache , partial
11+ from functools import partial
1212from pathlib import Path
1313from queue import Queue
1414from threading import Thread
@@ -72,14 +72,6 @@ def secure_path(in_path: Path, keep_spaces: bool = False) -> Path:
7272 return Path ("/" .join (secured_parts ))
7373
7474
75- @lru_cache (maxsize = 1 )
76- def get_machine_config (url : str , instrument_name : str = "" , demo : bool = False ) -> dict :
77- _instrument_name : str | None = instrument_name or os .getenv ("BEAMLINE" )
78- if not _instrument_name :
79- return {}
80- return requests .get (f"{ url } /instruments/{ _instrument_name } /machine" ).json ()
81-
82-
8375def _get_visit_list (api_base : ParseResult , instrument_name : str ):
8476 get_visits_url = api_base ._replace (
8577 path = f"/instruments/{ instrument_name } /visits_raw"
You can’t perform that action at this time.
0 commit comments