BUGFIX: incorrect shape comparison causing all saves to fail

This commit is contained in:
Pim Nelissen
2026-05-19 07:04:00 +02:00
parent 9c79bc2d8e
commit 4dfb893e93

View File

@ -78,13 +78,12 @@ def generate_df(sim: SimulationOutput) -> DataFrame:
east_coords = sim.count_rate.x[1:] east_coords = sim.count_rate.x[1:]
north_coords = sim.count_rate.y[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 east_coords = None
north_coords = None north_coords = None
logger.warning( logger.warning(
"PG-RAD currently does not support interpolation" "PG-RAD currently does not support this experimental path."
" of experimental paths for export. Only ROI_P, ROI_BR and Dist" " Only ROI_P, ROI_BR and Dist will be saved."
" will be saved."
) )
result_df = DataFrame( result_df = DataFrame(