Saving intermediate files#

As explained in --save-all, by default, HTTomo will not write the output of a method to a file unless under certain conditions (please see the link for a description of these file-saving conditions).

HTTomo can be informed to write or not write the output of a method to a file with the save_result parameter. Its value is a boolean, so either True or False are valid values for it.

Example 1: save output of a specific method#

Suppose we wanted to save the output of the normalisation function normalize. Then we should add save_result: True to the list of the function parameters, but NOT the method’s parameters:

- method: normalize
  module_path: httomolibgpu.prep.normalize
  parameters:
    cutoff: 10.0
    minus_log: true
    nonnegativity: false
    remove_nans: false
  save_result: True

Example 2: using --save_all and save_result together#

When the --save_all option/flag is provided, the save_result parameter can be used to override individual method’s to not save their output.

In contrast to the previous example, suppose we had a process list where we would like to save the output of all methods using --save_all, apart from the normalize method.

- method: normalize
  module_path: httomolibgpu.prep.normalize
  parameters:
    cutoff: 10.0
    minus_log: true
    nonnegativity: false
    remove_nans: false
  save_result: False