From 4dfb893e934ebc26a8240838566d45441dc1d7df Mon Sep 17 00:00:00 2001 From: Pim Nelissen Date: Tue, 19 May 2026 07:04:00 +0200 Subject: [PATCH] BUGFIX: incorrect shape comparison causing all saves to fail --- src/pg_rad/utils/export.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pg_rad/utils/export.py b/src/pg_rad/utils/export.py index 7732754..5fc8e97 100644 --- a/src/pg_rad/utils/export.py +++ b/src/pg_rad/utils/export.py @@ -78,13 +78,12 @@ def generate_df(sim: SimulationOutput) -> DataFrame: east_coords = sim.count_rate.x[1:] north_coords = sim.count_rate.y[1:] - if len(east_coords) != sim.count_rate.integrated_counts.shape: + if len(east_coords) != sim.count_rate.integrated_counts.shape[0]: east_coords = None north_coords = None logger.warning( - "PG-RAD currently does not support interpolation" - " of experimental paths for export. Only ROI_P, ROI_BR and Dist" - " will be saved." + "PG-RAD currently does not support this experimental path." + " Only ROI_P, ROI_BR and Dist will be saved." ) result_df = DataFrame(