Repository: DiamondLightSource/httomo (language: python)

Issue:
data resampler doesn't have memory_gpu field in the library. 
data resampler doesn't have `memory_gpu` field in the library. 
https://github.com/DiamondLightSource/httomo/blob/4629a0fd99c9be2076eb81bae29cac13cc61c82c/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml#L34
data resampler doesn't have memory_gpu field in the library. 
data resampler doesn't have `memory_gpu` field in the library. 
https://github.com/DiamondLightSource/httomo/blob/4629a0fd99c9be2076eb81bae29cac13cc61c82c/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml#L34


Discussion / hints:

Fix patch:
diff --git a/conda/environment.yml b/conda/environment.yml
index a283a5bc1..44beb53b4 100644
--- a/conda/environment.yml
+++ b/conda/environment.yml
@@ -25,6 +25,6 @@ dependencies:
   - anaconda::ipython
   - conda-forge::tomopy==1.15
   - httomo::httomolib==2.0
-  - httomo::httomolibgpu==2.0
+  - httomo::httomolibgpu==2.1
   - httomo::tomobar
   - rapidsai::cucim
diff --git a/docs/source/backends/templates.rst b/docs/source/backends/templates.rst
index 987d653a4..428c2d531 100644
--- a/docs/source/backends/templates.rst
+++ b/docs/source/backends/templates.rst
@@ -24,7 +24,7 @@ v.1.15
 
 HTTomolibgpu Modules
 --------------------
-v.2.0
+v.2.1
 '''''
 
 .. toctree::
diff --git a/docs/source/doc-conda-requirements.yml b/docs/source/doc-conda-requirements.yml
index 24d5cf4ae..cf3ded103 100644
--- a/docs/source/doc-conda-requirements.yml
+++ b/docs/source/doc-conda-requirements.yml
@@ -8,7 +8,7 @@ dependencies:
   - python>=3.10
   - numpy
   - tomopy==1.15
-  - httomolibgpu==2.0
+  - httomolibgpu==2.1
   - httomolib==2.0
   - sphinx
   - sphinx-book-theme
diff --git a/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml b/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml
index 6852b6294..28e3ec8d5 100644
--- a/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml
+++ b/httomo/methods_database/packages/external/httomolibgpu/httomolibgpu.yaml
@@ -35,7 +35,12 @@ misc:
       pattern: all
       output_dims_change: True
       implementation: gpu_cupy
+      save_result_default: False
       padding: False
+      memory_gpu:
+        - datasets: [tomo]
+        - multipliers: [None]
+        - methods: [module]
   rescale:
     rescale_to_int:
       pattern: all


Test patch:
diff --git a/tests/samples/pipeline_template_examples/pipeline_360deg_gpu2.yaml b/tests/samples/pipeline_template_examples/pipeline_360deg_gpu2.yaml
index 303689d22..d5e77c0ae 100644
--- a/tests/samples/pipeline_template_examples/pipeline_360deg_gpu2.yaml
+++ b/tests/samples/pipeline_template_examples/pipeline_360deg_gpu2.yaml
@@ -52,6 +52,12 @@
     recon_size: null
     recon_mask_radius: null
   save_result: true
+- method: data_resampler
+  module_path: httomolibgpu.misc.morph
+  parameters:
+    newshape: [500, 500]
+    axis: auto
+    interpolation: linear
 - method: calculate_stats
   module_path: httomo.methods
   parameters: {}
diff --git a/tests/test_pipeline.py b/tests/test_pipeline.py
index 526205b76..d6945201f 100644
--- a/tests/test_pipeline.py
+++ b/tests/test_pipeline.py
@@ -698,6 +698,6 @@ def test_run_pipeline_360deg_gpu2(
     assert "Loading data: tests/test_data/360scan/360scan.hdf" in verbose_log_contents
     assert "Path to data: entry1/tomo_entry/data/data" in verbose_log_contents
     assert "Data shape is (3601, 3, 2560) of type uint16" in verbose_log_contents
-    assert "Global min -0.003281" in verbose_log_contents
-    assert "Global max 0.006374" in verbose_log_contents
-    assert "Global mean 0.000887" in verbose_log_contents
+    assert "Global min -0.002859" in verbose_log_contents
+    assert "Global max 0.00561" in verbose_log_contents
+    assert "Global mean 0.000889" in verbose_log_contents