nxtomomill.converter.hdf5.utils.get_default_output_file#

nxtomomill.converter.hdf5.utils.get_default_output_file(input_file, output_file_extension='.nx')[source]#

Policy: look for any ‘RAW_DATA’ in file directory. If find any (before any ‘PROCESSED_DATA’ directory) replace it “RAW_DATA”. Then replace input_file by the expected file_extension and make sure the output file is different than the input file. Else append _nxtomo to it.

Parameters
  • input_file (str) – file to be converted from bliss to NXtomo

  • output_file_extension (str) –

Return type

str

Returns

default output file according to policy