From 962b3cfd627d8188f2960bf03ee7da92259e9a2b Mon Sep 17 00:00:00 2001 From: Abigail Giles Date: Wed, 1 May 2024 14:04:07 -0400 Subject: [PATCH] Remove username=None from tiled client --- data_validation.py | 2 +- export.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data_validation.py b/data_validation.py index 4c95659..4271737 100644 --- a/data_validation.py +++ b/data_validation.py @@ -2,7 +2,7 @@ import time as ttime from tiled.client import from_profile -tiled_client = from_profile("nsls2", username=None) +tiled_client = from_profile("nsls2") @task(retries=2, retry_delay_seconds=10) def read_all_streams(beamline_acronym, uid): diff --git a/export.py b/export.py index d93b29a..63ab56c 100644 --- a/export.py +++ b/export.py @@ -48,7 +48,7 @@ def export_task(uids): logger.info(f"Uids: {uids}") # Connect to the tiled server, and get the set of runs from the set of uids. - tiled_client = databroker.from_profile("nsls2", username=None)["lix"]["raw"] + tiled_client = databroker.from_profile("nsls2")["lix"]["raw"] runs = [tiled_client[uid] for uid in uids] task_info = {run.start["uid"]: run.start["plan_name"] for run in runs}