Skip to content

Commit a573d8d

Browse files
committed
go back to using from_profile(..., api_key=api_key)
1 parent 9c01be5 commit a573d8d

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

data_validation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,15 @@
11
from prefect import task, flow, get_run_logger
22
from prefect.blocks.system import Secret
33
import time as ttime
4-
from utils import get_tiled_client
4+
from tiled.client import get_profile
55
import os
66

77
@task(retries=2, retry_delay_seconds=10)
88
def read_all_streams(uid, beamline_acronym):
99
logger = get_run_logger()
10-
run = get_tiled_client()["raw"][uid]
10+
api_key = Secret.load("tiled-tst-api-key").get()
11+
cl = get_profile("nsls2", api_key=api_key)
12+
run = cl["tst"]["raw"][uid]
1113
logger.info(f"Validating uid {run.start['uid']}")
1214
start_time = ttime.monotonic()
1315
for stream in run:

0 commit comments

Comments
 (0)