Skip to content

Commit

Permalink
Merge pull request #2918 from patrickcleeve2/meteor-fix-auto-acq-zpar…
Browse files Browse the repository at this point in the history
…ams-and-desc

[FIX] Minor issues with auto feature acquisition
  • Loading branch information
pieleric authored Oct 29, 2024
2 parents afc4fab + 34aea80 commit c7c6bb1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/odemis/acq/feature.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,6 +502,12 @@ def _export_data(self, feature: CryoFeature, data: List[model.DataArray]) -> Non

filename = add_feature_info_to_filename(feature, self.filename)

# add feature name to the data description
for d in data:
name = feature.name.value
status = feature.status.value
d.metadata[model.MD_DESCRIPTION] = f"{name}-{status}-{d.metadata[model.MD_DESCRIPTION]}"

self.exporter.export(filename, data)
logging.info("Acquisition saved as file '%s'.", filename)

Expand Down
2 changes: 1 addition & 1 deletion src/odemis/gui/cont/acquisition/cryo_acq.py
Original file line number Diff line number Diff line change
Expand Up @@ -289,7 +289,7 @@ def _acquire_at_features(self, _: wx.Event):
self._tab_data.main.is_acquiring.value = True

zparams: dict = {}
if self._zStackActive:
if self._zStackActive.value:
self._on_zstack()
# Note: we use the zparams to calculate the zlevels for each feature individually,
# rather than using the same zlevels for all features.
Expand Down

0 comments on commit c7c6bb1

Please sign in to comment.