tomwer.core.process.reconstruction.output.get_output_folder_from_scan#

tomwer.core.process.reconstruction.output.get_output_folder_from_scan(mode, scan, nabu_location, file_basename, file_format, processed_data_folder_name)#
Parameters:
  • mode (ProcessDataOutputDirMode) – output mode, should save this to raw data, processed data…

  • scan (TomwerScanBase) – scan for which we want to get the output folder

  • nabu_location (str | None) – output location provided by user (in case mode is ‘other’)

  • file_basename (str) – file basename to take in order to create output files

  • file_format (NabuOutputFileFormat) – output volume format (edf…)

  • processed_data_folder_name (str | None) – name of the processed data folder. Like ‘reconstructed_volumes’ or ‘reconstructed_slices’…

Return type:

tuple[str, str]

Returns:

(location, location_cfg_files). Location is the nabu configuration field ‘output/location’ ‘location_cfg_files’ is the information on where to save the nabu configuration file