Commit 04c8f1ae authored by Pierre-Antoine Rouby's avatar Pierre-Antoine Rouby
Browse files

Results: CustomPlot: Minor change to fix warnings.

Showing with 2 additions and 3 deletions
+2 -3
...@@ -95,7 +95,7 @@ class CustomPlot(PamhyrPlot): ...@@ -95,7 +95,7 @@ class CustomPlot(PamhyrPlot):
) )
self._axes[axes] = ax_new self._axes[axes] = ax_new
if self._x is "kp": if self._x == "kp":
results = self.data results = self.data
reach = results.river.reach(self._reach) reach = results.river.reach(self._reach)
kp = reach.geometry.get_kp() kp = reach.geometry.get_kp()
...@@ -130,7 +130,6 @@ class CustomPlot(PamhyrPlot): ...@@ -130,7 +130,6 @@ class CustomPlot(PamhyrPlot):
) )
) )
meter_axes.set_ylim( meter_axes.set_ylim(
bottom=min(0, min(z_min)), bottom=min(0, min(z_min)),
top=max(water_z) + 1 top=max(water_z) + 1
...@@ -165,7 +164,7 @@ class CustomPlot(PamhyrPlot): ...@@ -165,7 +164,7 @@ class CustomPlot(PamhyrPlot):
color='r', color='r',
) )
elif self._x is "time": elif self._x == "time":
if "elevation" in self._y: if "elevation" in self._y:
logging.info("TODO: time/elevation") logging.info("TODO: time/elevation")
if "water_elevation" in self._y: if "water_elevation" in self._y:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment