From cbb6ebb7e56a0acceec386b048142de3f4a97afb Mon Sep 17 00:00:00 2001 From: lassjsc Date: Mon, 9 Feb 2026 10:36:27 +0200 Subject: [PATCH] Added informational print in cell_edgecontours if threshold is too large. --- analysator/plot/__init__.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/analysator/plot/__init__.py b/analysator/plot/__init__.py index efc1b954..eae4d560 100644 --- a/analysator/plot/__init__.py +++ b/analysator/plot/__init__.py @@ -58,7 +58,7 @@ import platform from packaging.version import Version from numbers import Number - +import logging try: from .plot_isosurface import plot_isosurface, plot_neutral_sheet if Version(platform.python_version()) < Version("3.7"): @@ -292,7 +292,9 @@ def cell_edgecontours(ax,XmeshPass,YmeshPass,heightmap,threshold=0,linewidth=0.5 lines = np.vstack((vlines, hlines)) ax.add_collection(matplotlib.collections.LineCollection(lines, lw=linewidth, colors=colors, linestyle=linestyle,zorder=2,antialiased=antialiased)) - + else: + logging.info(f"No values found above the threshold={threshold} in heightmap.") + return 1 return 0 def output_path(outputfile,outputfile_default,outputdir,nooverwrite):