From 04c8f1ae5f60e98967053ac12efe4b996b1018c6 Mon Sep 17 00:00:00 2001 From: Pierre-Antoine Rouby <pierre-antoine.rouby@inrae.fr> Date: Wed, 18 Oct 2023 14:02:55 +0200 Subject: [PATCH] Results: CustomPlot: Minor change to fix warnings. --- src/View/Results/CustomPlot/Plot.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/View/Results/CustomPlot/Plot.py b/src/View/Results/CustomPlot/Plot.py index 6c6f2ec8..6bfe6aba 100644 --- a/src/View/Results/CustomPlot/Plot.py +++ b/src/View/Results/CustomPlot/Plot.py @@ -95,7 +95,7 @@ class CustomPlot(PamhyrPlot): ) self._axes[axes] = ax_new - if self._x is "kp": + if self._x == "kp": results = self.data reach = results.river.reach(self._reach) kp = reach.geometry.get_kp() @@ -130,7 +130,6 @@ class CustomPlot(PamhyrPlot): ) ) - meter_axes.set_ylim( bottom=min(0, min(z_min)), top=max(water_z) + 1 @@ -165,7 +164,7 @@ class CustomPlot(PamhyrPlot): color='r', ) - elif self._x is "time": + elif self._x == "time": if "elevation" in self._y: logging.info("TODO: time/elevation") if "water_elevation" in self._y: -- GitLab