Skip to content

Commit

Permalink
Export options: Default empty datasetName for OME-Zarr
Browse files Browse the repository at this point in the history
  • Loading branch information
btbest committed Oct 2, 2024
1 parent 9bca34a commit dec2e97
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions volumina/widgets/multiformatSlotExportFileOptionsWidget.py
Original file line number Diff line number Diff line change
Expand Up @@ -181,6 +181,13 @@ def _handleFormatChange(self, index):
else:
self._opDataExport.OutputFilenameFormat.setValue(export_path)

if "OME-Zarr" in file_format and "exported_data" == self._opDataExport.OutputInternalPath.value:

Check warning on line 184 in volumina/widgets/multiformatSlotExportFileOptionsWidget.py

View check run for this annotation

Codecov / codecov/patch

volumina/widgets/multiformatSlotExportFileOptionsWidget.py#L184

Added line #L184 was not covered by tests
# Default to no dataset name for OME-Zarr formats
self._opDataExport.OutputInternalPath.setValue("")
elif "OME-Zarr" not in file_format and "" == self._opDataExport.OutputInternalPath.value:

Check warning on line 187 in volumina/widgets/multiformatSlotExportFileOptionsWidget.py

View check run for this annotation

Codecov / codecov/patch

volumina/widgets/multiformatSlotExportFileOptionsWidget.py#L186-L187

Added lines #L186 - L187 were not covered by tests
# Restore default
self._opDataExport.OutputInternalPath.setValue("exported_data")

Check warning on line 189 in volumina/widgets/multiformatSlotExportFileOptionsWidget.py

View check run for this annotation

Codecov / codecov/patch

volumina/widgets/multiformatSlotExportFileOptionsWidget.py#L189

Added line #L189 was not covered by tests

# Show the new option widget
self.stackedWidget.setCurrentWidget(option_widget)

Expand Down

0 comments on commit dec2e97

Please sign in to comment.