Skip to content

Commit

Permalink
add another test
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomasjkeel committed Jan 16, 2025
1 parent 4c2bf34 commit 16f7fb2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions jsmetrics/utils/spatial_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down

0 comments on commit 16f7fb2

Please sign in to comment.