From 4767167854575785f83b33317aef9fd7826c625e Mon Sep 17 00:00:00 2001 From: Brendan Date: Wed, 21 Feb 2024 16:32:28 +1100 Subject: [PATCH] found another pandas future warning --- mri_distortion_toolkit/MarkerAnalysis.py | 2 +- mri_distortion_toolkit/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mri_distortion_toolkit/MarkerAnalysis.py b/mri_distortion_toolkit/MarkerAnalysis.py index 543f508..7c6a0e1 100644 --- a/mri_distortion_toolkit/MarkerAnalysis.py +++ b/mri_distortion_toolkit/MarkerAnalysis.py @@ -737,7 +737,7 @@ def _match_crosshair(search_centroids, reference_centroids): # Calculate the distance between each marker and central position ground_truth['r_centre'] = ground_truth.apply( - lambda row: np.sqrt((row[0] - central_x) ** 2 + (row[1] - central_y) ** 2 + (row[2] - central_z) ** 2), + lambda row: np.sqrt((row.iloc[0] - central_x) ** 2 + (row.iloc[1] - central_y) ** 2 + (row.iloc[2] - central_z) ** 2), axis=1) # Find the crosshair reference markers diff --git a/mri_distortion_toolkit/__init__.py b/mri_distortion_toolkit/__init__.py index 642c019..3644b4d 100644 --- a/mri_distortion_toolkit/__init__.py +++ b/mri_distortion_toolkit/__init__.py @@ -4,7 +4,7 @@ https://acrf-image-x-institute.github.io/MRI_DistortionQA/index.html """ -__version__ = '0.14.9' +__version__ = '0.14.10' try: import FreeCAD except ImportError: