Skip to content
Snippets Groups Projects
Commit 9058104c authored by payno's avatar payno
Browse files

Merge branch 'fix_1115' into 'main'

tomwer.core.process.reconstruction.output: improve...

Closes #1115

See merge request tomotools/tomwer!919
parents f036f2b3 16ee43bd
No related branches found
No related tags found
No related merge requests found
......@@ -78,18 +78,14 @@ def get_output_folder_from_scan(
file_format = NabuOutputFileFormat.from_value(file_format)
if output_mode is ProcessDataOutputDirMode.OTHER and nabu_location in ("", None):
_logger.info(
"output dir requested is other bit no path provided. Fall back on the output dir to the scan folder"
_logger.error(
"'other' output dir requested but no path provided. Fall back on the output dir to the scan folder"
)
# note: this is only an info because we expect to pass by this one for all .ows configuration (before 1.3 version)
# as there was no different option by the time
output_mode = ProcessDataOutputDirMode.IN_SCAN_FOLDER
if output_mode is ProcessDataOutputDirMode.OTHER:
assert nabu_location not in (
"",
None,
), "nabu_location not provided when expected"
location = format_output_location(nabu_location, scan=scan)
location_cfg_files = location
elif output_mode in (
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment