Skip to content

Commit

Permalink
Change default export format to compressed hdf5 (#2812)
Browse files Browse the repository at this point in the history
most ilastik outputs compress very well - compressed hdf5 should be made
the default format.
Furthermore the default format can now be customized in the config.
  • Loading branch information
k-dominik committed Feb 20, 2024
1 parent efaee7e commit acb6e14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ilastik/applets/dataExport/opDataExport.py
Expand Up @@ -93,7 +93,7 @@ class OpDataExport(Operator):
value=cfg["ilastik"]["output_filename_format"]
) # A format string allowing {dataset_dir} {nickname}, {roi}, {x_start}, {x_stop}, etc.
OutputInternalPath = InputSlot(value="exported_data")
OutputFormat = InputSlot(value="hdf5")
OutputFormat = InputSlot(value=cfg["ilastik"]["output_format"])

# Only export csv/HDF5 table (don't export volume)
TableOnlyName = InputSlot(value="Table-Only")
Expand Down
8 changes: 7 additions & 1 deletion ilastik/config.py
Expand Up @@ -29,7 +29,12 @@
import appdirs

"""
ilastik will read settings from ~/.ilastikrc
ilastik will read settings from ilastik.ini
which should be located at
* windows: C:\\Users\\<USERNAME>\\AppData\\Local\\ilastik
* osx: /Users/<USERNAME>/Library/Caches/ilastik
* linux: /home/<USERNAME>/.config/ilastik
Example:
Expand All @@ -44,6 +49,7 @@
debug: false
plugin_directories: ~/.ilastik/plugins,
output_filename_format: {dataset_dir}/{nickname}_{result_type}
output_format: compressed hdf5
[lazyflow]
threads: -1
Expand Down

0 comments on commit acb6e14

Please sign in to comment.