Skip to content

Commit 36e4b49

Browse files
committed
add storage folder to atlas so that montages can be made in the correct location later
1 parent ee12dc2 commit 36e4b49

3 files changed

Lines changed: 4 additions & 2 deletions

File tree

src/murfey/client/analyser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -378,7 +378,7 @@ def _analyse(self):
378378
self.post_transfer(transferred_file)
379379
else:
380380
dc_metadata = {}
381-
if (
381+
if not self._serialem and (
382382
self._force_mdoc_metadata
383383
and transferred_file.suffix == ".mdoc"
384384
or mdoc_for_reading

src/murfey/client/contexts/atlas.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def post_transfer_serialem(
5959
data={
6060
"name": transferred_file.stem,
6161
"acquisition_uuid": environment.acquisition_uuid,
62+
"storage_folder": str(source),
6263
},
6364
)
6465

src/murfey/server/api/session_control.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,7 @@ def get_foil_hole(
360360
class AtlasRegistration(BaseModel):
361361
name: str
362362
acquisition_uuid: str
363+
storage_folder: str = ""
363364
register_grid: bool = False
364365

365366

@@ -390,7 +391,7 @@ def register_atlas(
390391
atlas_data = AtlasData(
391392
id=atlas_registration_data.name,
392393
acquisition_date=datetime.now(),
393-
storage_folder="",
394+
storage_folder=atlas_registration_data.storage_folder,
394395
name=atlas_registration_data.name,
395396
tiles=[],
396397
gridsquare_positions=None,

0 commit comments

Comments
 (0)