Results: Fix sl results display.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-12-18 15:11:56 +01:00
1 parent e6de528b7f
commit 5c0f90b43e
2 files changed
+8 -5

No files matched your search

+6 -3
View File
@@ -124,14 +124,14 @@ class PlotSedReach(PamhyrPlot):
profiles_sl_0 = list(
map(
# Get SL list for profile p at time 0 (initial data)
lambda p: p.get_ts_key(0.0, "sl"),
lambda p: p.get_ts_key(0.0, "sl")[0],
reach.profiles
)
)
profiles_sl = list(
map(
# Get SL list for profile p at current time
lambda p: p.get_ts_key(self._current_timestamp, "sl"),
lambda p: p.get_ts_key(self._current_timestamp, "sl")[0],
reach.profiles
)
)
@@ -163,7 +163,10 @@ class PlotSedReach(PamhyrPlot):
z_sl = reduce(
lambda acc, v: acc + [
list(
map(lambda x, y: y - x, v, acc[-1])
map(
lambda x, y: y - x,
v, acc[-1]
)
)
],
sl_0,