mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
Results: Fix sl results display.
This commit is contained in:
1 parent
e6de528b7f
commit
5c0f90b43e
2 files changed
+8
-5
No files matched your search
@@ -51,13 +51,13 @@ class PlotSedProfile(PamhyrPlot):
|
|||||||
profiles_sl = list(
|
profiles_sl = list(
|
||||||
map(
|
map(
|
||||||
lambda sl: sl[0],
|
lambda sl: sl[0],
|
||||||
profile.get_ts_key(self._current_timestamp, "sl")
|
profile.get_ts_key(self._current_timestamp, "sl")[0]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
profiles_sl_0 = list(
|
profiles_sl_0 = list(
|
||||||
map(
|
map(
|
||||||
lambda sl: sl[0],
|
lambda sl: sl[0],
|
||||||
profile.get_ts_key(0.0, "sl")
|
profile.get_ts_key(0.0, "sl")[0]
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@@ -124,14 +124,14 @@ class PlotSedReach(PamhyrPlot):
|
|||||||
profiles_sl_0 = list(
|
profiles_sl_0 = list(
|
||||||
map(
|
map(
|
||||||
# Get SL list for profile p at time 0 (initial data)
|
# 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
|
reach.profiles
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
profiles_sl = list(
|
profiles_sl = list(
|
||||||
map(
|
map(
|
||||||
# Get SL list for profile p at current time
|
# 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
|
reach.profiles
|
||||||
)
|
)
|
||||||
)
|
)
|
||||||
@@ -163,7 +163,10 @@ class PlotSedReach(PamhyrPlot):
|
|||||||
z_sl = reduce(
|
z_sl = reduce(
|
||||||
lambda acc, v: acc + [
|
lambda acc, v: acc + [
|
||||||
list(
|
list(
|
||||||
map(lambda x, y: y - x, v, acc[-1])
|
map(
|
||||||
|
lambda x, y: y - x,
|
||||||
|
v, acc[-1]
|
||||||
|
)
|
||||||
)
|
)
|
||||||
],
|
],
|
||||||
sl_0,
|
sl_0,
|
||||||
|
|||||||
Reference in new issue
Block a user