From 16f7fb2460cfd241982314a3b2f41d555779e2b6 Mon Sep 17 00:00:00 2001 From: Thomasjkeel Date: Thu, 16 Jan 2025 16:11:04 +0000 Subject: [PATCH] add another test --- jsmetrics/utils/spatial_utils.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/jsmetrics/utils/spatial_utils.py b/jsmetrics/utils/spatial_utils.py index a3eb183..02edc54 100644 --- a/jsmetrics/utils/spatial_utils.py +++ b/jsmetrics/utils/spatial_utils.py @@ -292,8 +292,8 @@ def get_one_contour_linestring(dataarray, contour_level): try: assert contour_level == False except: - raise AssertionError(f"FAILED: {contour_level}") - one_contour = dataarray.plot.contour(levels=[float(contour_level)]) + raise AssertionError(f"FAILED: {type(contour_level)}") + one_contour = dataarray.plot.contour(levels=[float(contour_level[0])]) matplotlib.pyplot.close() one_contour_segments = seperate_one_contour_into_line_segments( one_contour.get_paths()[0]