From 7595e08466784f56cf8850d3ef9059d0a53d1709 Mon Sep 17 00:00:00 2001 From: Bruno Manuel Santos Saraiva Date: Mon, 9 Jun 2025 09:27:55 +0100 Subject: [PATCH] forcing output as np.ndarray --- setup.py | 2 +- src/nanopyx/methods/esrrf/eSRRF_workflow.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/setup.py b/setup.py index 389a3333..fade518b 100644 --- a/setup.py +++ b/setup.py @@ -22,7 +22,7 @@ ] EXTRA_LING_ARGS = [] -VERSION = "1.2.0" # sets version number for whole package +VERSION = "1.2.1" # sets version number for whole package def run_command(command: str) -> str: diff --git a/src/nanopyx/methods/esrrf/eSRRF_workflow.py b/src/nanopyx/methods/esrrf/eSRRF_workflow.py index 48f7e250..01ae33e8 100644 --- a/src/nanopyx/methods/esrrf/eSRRF_workflow.py +++ b/src/nanopyx/methods/esrrf/eSRRF_workflow.py @@ -60,8 +60,8 @@ def eSRRF( ) if macro_pixel_correction: return macro_pixel_corrector( - _eSRRF.calculate(_force_run_type=_force_run_type)[0], + np.asarray(_eSRRF.calculate(_force_run_type=_force_run_type)[0]), magnification=magnification, ) else: - return _eSRRF.calculate(_force_run_type=_force_run_type)[0] + return np.asarray(_eSRRF.calculate(_force_run_type=_force_run_type)[0])