httomo.utils

httomo.utils#

Classes

Pattern(value[, names, module, qualname, ...])

Enum for the different slicing-orientations/"patterns" that tomographic data can have.

catch_gputime()

catchtime()

A context manager to measure ns-accurate time for the context block.

Functions

get_data_in_data_out(method_name, ...)

Get the input and output datasets in a list

log_exception(output)

Log an exception to the log file.

log_once(output[, level])

Log output to console and log file if the process' global rank is zero.

log_rank(output, comm)

Log output to log file with the process rank.

make_3d_shape_from_array(array)

Given a 3D array, return a corresponding shape tuple with the right typing type (required to make mypy type checks work)

make_3d_shape_from_shape(shape)

Given a shape as a list of length 3, return a corresponding tuple with the right typing type (required to make mypy type checks work)