Skip to content

Commit f72acb9

Browse files
Fixes for correlative workflow tiff file download (#666)
* Import correlative router * Make the parent of the downloaded tiff file
1 parent 61d17f0 commit f72acb9

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

src/murfey/instrument_server/api.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,9 @@ def gather_upstream_tiffs(
494494
stream=True,
495495
headers={"Authorization": f"Bearer {tokens[session_id]}"},
496496
)
497+
(upstream_tiff_info.download_dir / tiff_path).parent.mkdir(
498+
parents=True, exist_ok=True
499+
)
497500
with open(upstream_tiff_info.download_dir / tiff_path, "wb") as utiff:
498501
for chunk in tiff_data.iter_content(chunk_size=32 * 1024**2):
499502
utiff.write(chunk)

src/murfey/server/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ class Settings(BaseSettings):
8080
app.include_router(murfey.server.api.mag_table.router)
8181

8282
app.include_router(murfey.server.api.session_control.router)
83+
app.include_router(murfey.server.api.session_control.correlative_router)
8384
app.include_router(murfey.server.api.session_control.spa_router)
8485
app.include_router(murfey.server.api.session_control.tomo_router)
8586

0 commit comments

Comments
 (0)