Skip to content

Commit f325003

Browse files
committed
add Tiled API key as an env var for pyxrf
1 parent 23f407f commit f325003

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

xrf_hdf5_exporter.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,7 @@ def export_xrf_hdf5(scanid):
5151
prefix = "autorun_scan2D_"
5252

5353
logger.info(f"{working_dir =}")
54+
os.environ["TILED_API_KEY"] = api_key # pyxrf assumes Tiled API key as an environment variable
5455
make_hdf(scanid, wd=working_dir, prefix=prefix, catalog_name=CATALOG_NAME)
5556

5657
# chmod g+w for created file(s)

0 commit comments

Comments
 (0)