From af1a0360cc87b26ef6864c8ec803b98afff68509 Mon Sep 17 00:00:00 2001 From: algol Date: Fri, 14 Aug 2026 13:47:25 +0100 Subject: [PATCH] adding find_center_metric_recon --- .../packages/backends/httomolibgpu/httomolibgpu.yaml | 9 +++++++++ httomo_backends/scripts/yaml_templates_generator.py | 7 ++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/httomo_backends/methods_database/packages/backends/httomolibgpu/httomolibgpu.yaml b/httomo_backends/methods_database/packages/backends/httomolibgpu/httomolibgpu.yaml index 1d63d62d..b8c559cb 100644 --- a/httomo_backends/methods_database/packages/backends/httomolibgpu/httomolibgpu.yaml +++ b/httomo_backends/methods_database/packages/backends/httomolibgpu/httomolibgpu.yaml @@ -292,3 +292,12 @@ recon: memory_gpu: multiplier: 0 method: direct + find_center_metric_recon: + pattern: projection + output_dims_change: False + implementation: gpu_cupy + save_result_default: False + padding: False + memory_gpu: + multiplier: 2 + method: direct \ No newline at end of file diff --git a/httomo_backends/scripts/yaml_templates_generator.py b/httomo_backends/scripts/yaml_templates_generator.py index d1cd305b..e3063df0 100644 --- a/httomo_backends/scripts/yaml_templates_generator.py +++ b/httomo_backends/scripts/yaml_templates_generator.py @@ -162,7 +162,12 @@ def _set_dict_special_cases(method_dict: Dict, method_name: str): method_dict: Dictionary of modules and parameters method_name: Name of method """ - if method_name in ["find_center", "find_center_vo", "find_center_pc"]: + if method_name in [ + "find_center", + "find_center_vo", + "find_center_pc", + "find_center_metric_recon", + ]: method_dict["id"] = "centering" method_dict["side_outputs"] = {"cor": "centre_of_rotation"} if method_name in ["find_center_360"]: