Saving intermediate files#
HTTomo, by default, will not write the output of a method to a file unless under certain conditions (please see more in --save-all).
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