tomwer.core.process.reconstruction.nabu.utils#

Functions

from_nabu_config_to_file_format(nabu_config)

Infers the file format from a Nabu configuration dictionary.

get_default_output_volume_for_tiff_3d(...)

Does what nabu.io.cast_volume.get_default_output_volume does but for for 3d-tiff For a given input volume and output type return output volume as an instance of VolumeBase

get_multi_cor_recons_volume_identifiers(...)

util to retrieve Volumes (identifier) reconstructed by nabu-multicor

get_nabu_about_desc(overwrite)

Create the description for nabu's 'about'

get_nabu_multicor_file_prefix(scan)

get_recons_volume_identifier(file_prefix, ...)

return tuple of DataUrl for existings slices

nabu_std_err_has_error(errs)

small util to parse stderr where some warning can exists.

retrieve_lst_of_value_from_str(my_string, type_)

Return a list of value from a string like '12,23' or '(12, 23)', '[12;23]', '12;23' or with the pattern from:to:step like '0:10:1'

slice_index_to_int(slice_index, scan[, axis])

cast a slice to an index.

update_cfg_file_after_transfer(...)

update nabu configuration file path from /lbsram/data to /data

update_nabu_config_for_tiff_3d(config)

Adapts the nabu configuration for 3D TIFF file format.

Classes

RingCorrectionMethod(*values)

TomwerInfo(config_dict)

Simple context manager to add tomwer metadata to a dict before writing it