File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 55from prefect .blocks .system import Secret
66from tiled .client import from_profile
77
8- BEAMLINE_OR_ENDSTATION = "!!! Set the endstation or beamline_TLA here !!! "
8+ BEAMLINE_OR_ENDSTATION = "arpes "
99
1010
1111@task (retries = 2 , retry_delay_seconds = 10 )
1212def read_all_streams (uid , beamline_acronym = BEAMLINE_OR_ENDSTATION ):
1313 logger = get_run_logger ()
1414 api_key = Secret .load (f"tiled-{ beamline_acronym } -api-key" , _sync = True ).get ()
1515 tiled_client = from_profile ("nsls2" , api_key = api_key )
16- run = tiled_client [beamline_acronym ]["raw " ][uid ]
16+ run = tiled_client [beamline_acronym ]["migration " ][uid ]
1717 logger .info (f"Validating uid { run .metadata ['start' ]['uid' ]} " )
1818 start_time = ttime .monotonic ()
1919 for stream in run :
2020 logger .info (f"{ stream } :" )
2121 stream_start_time = ttime .monotonic ()
22- stream_data = run [stream ].read ()
22+ # stream_data = run[stream].read()
2323 stream_elapsed_time = ttime .monotonic () - stream_start_time
2424 logger .info (f"{ stream } elapsed_time = { stream_elapsed_time } " )
2525 logger .info (f"{ stream } nbytes = { stream_data .nbytes :_} " )
You can’t perform that action at this time.
0 commit comments