httomo_backends.methods_database.query#

class httomo_backends.methods_database.query.GpuMemoryRequirement(multiplier: float | None = 1.0, method: Literal['direct', 'module'] = 'direct')[source]#

Bases: object

method: Literal['direct', 'module'] = 'direct'#
multiplier: float | None = 1.0#
class httomo_backends.methods_database.query.MethodDatabaseRepository[source]#

Bases: object

Implements the MethodRepository protocol from httomo.

query(module_path: str, method_name: str) MethodsDatabaseQuery[source]#
class httomo_backends.methods_database.query.MethodsDatabaseQuery(module_path: str, method_name: str)[source]#

Bases: object

Implements the MethodQuery protocol from httomo.

calculate_memory_bytes(non_slice_dims_shape: Tuple[int, int], dtype: dtype, **kwargs) Tuple[int, int][source]#
calculate_output_dims(non_slice_dims_shape: Tuple[int, int], **kwargs) Tuple[int, int][source]#
calculate_padding(**kwargs) Tuple[int, int][source]#
get_implementation() Literal['cpu', 'gpu', 'gpu_cupy'][source]#
get_memory_gpu_params() GpuMemoryRequirement | None[source]#
get_output_dims_change() bool[source]#
get_pattern() Pattern[source]#
padding() bool[source]#
save_result_default() bool[source]#
swap_dims_on_output() bool[source]#
class httomo_backends.methods_database.query.Pattern(value, names=<not given>, *values, module=None, qualname=None, type=None, start=1, boundary=None)[source]#

Bases: Enum

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

all = 2#
projection = 0#
sinogram = 1#