Skip to content

Commit

Permalink
Merge pull request #6 from NSLS-II-LIX/tiled-auth
Browse files Browse the repository at this point in the history
Fix tiled authentication
  • Loading branch information
danielballan committed May 1, 2024
2 parents 68ef340 + 962b3cf commit a2d6c94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion data_validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
2 changes: 1 addition & 1 deletion export.py
Original file line number Diff line number Diff line change
Expand Up @@ -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}

Expand Down

0 comments on commit a2d6c94

Please sign in to comment.