Commit cb8b472b authored by Pierre Paleo's avatar Pierre Paleo
Browse files

Add Z splitter CLI tool

parent ab749518
Pipeline #34041 passed with stages
in 2 minutes and 35 seconds
......@@ -3,7 +3,6 @@
#
# Default configuration for "bootstrap" command
BootstrapConfig = {
"bootstrap": {
"help": "Bootstrap a configuration file from scratch.",
......@@ -35,7 +34,6 @@ BootstrapConfig = {
# Default configuration for "validate" command
ValidateConfig = {
"input_file": {
"help": "Nabu input file",
......@@ -44,8 +42,38 @@ ValidateConfig = {
}
# Default configuration for "reconstruct" command
# Default configuration for "zsplit" command
ZSplitConfig = {
"input_file": {
"help": "Input HDF5-Nexus file",
"mandatory": True,
},
"output_directory": {
"help": "Output directory to write split files.",
"mandatory": True,
},
"loglevel": {
"help": "Logging level. Can be 'debug', 'info', 'warning', 'error'. Default is 'info'.",
"default": "info",
},
"entry": {
"help": "HDF5 entry to take in the input file. By default, the first entry is taken.",
"default": "",
},
"n_stages": {
"help": "Number of expected stages (i.e different 'Z' values). By default it is inferred from the dataset.",
"default": -1,
"type": int,
},
"use_virtual_dataset": {
"help": "Whether to use virtual datasets for output file. Not using a virtual dataset duplicates data and thus results in big files ! However virtual datasets currently have performance issues. Default is False",
"default": 0,
"type": int,
},
}
# Default configuration for "reconstruct" command
ReconstructConfig = {
"input_file": {
"help": "Nabu input file",
......@@ -104,4 +132,3 @@ ReconstructConfig = {
"type": int,
},
}
......@@ -72,6 +72,7 @@ def setup_package():
'console_scripts': [
"nabu-test=nabu.tests:nabu_test",
"nabu-config=nabu.resources.cli.bootstrap:bootstrap",
"nabu-zsplit=nabu.resources.cli.nx_z_splitter:zsplit",
"nabu=nabu.resources.cli.reconstruct:main",
],
},
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment