mirror of https://gitlab.com/pamhyr/pamhyr2
debug
parent
4ed865759a
commit
bb0e176956
|
|
@ -1372,7 +1372,7 @@ class Mage8(Mage):
|
||||||
logger.info(f"compute river bed elevation...")
|
logger.info(f"compute river bed elevation...")
|
||||||
|
|
||||||
for r in reachs:
|
for r in reachs:
|
||||||
z_min = reach.geometry.get_z_min()
|
z_min = r.geometry.get_z_min()
|
||||||
sls = list(map(
|
sls = list(map(
|
||||||
lambda p: p.get_ts_key(ts_list[0], "sl")[0],
|
lambda p: p.get_ts_key(ts_list[0], "sl")[0],
|
||||||
r.profiles
|
r.profiles
|
||||||
|
|
|
||||||
|
|
@ -1965,7 +1965,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||||
for key in ["Z", "Q", "V"]:
|
for key in ["Z", "Q", "V"]:
|
||||||
d1 = profile1.get_ts_key(timestamp, key)
|
d1 = profile1.get_ts_key(timestamp, key)
|
||||||
d2 = profile2.get_ts_key(timestamp, key)
|
d2 = profile2.get_ts_key(timestamp, key)
|
||||||
d = d1-d2
|
d = d1 - d2
|
||||||
reach3.set(p, timestamp, key, d)
|
reach3.set(p, timestamp, key, d)
|
||||||
reach1.set(p, timestamp, key, d1)
|
reach1.set(p, timestamp, key, d1)
|
||||||
reach2.set(p, timestamp, key, d2)
|
reach2.set(p, timestamp, key, d2)
|
||||||
|
|
@ -1976,7 +1976,7 @@ class ApplicationWindow(QMainWindow, ListedSubWindow, WindowToolKit):
|
||||||
d2 = profile2.get_ts_key(timestamp, 'zfd')
|
d2 = profile2.get_ts_key(timestamp, 'zfd')
|
||||||
reach2.set(p, timestamp, 'zfd', d2)
|
reach2.set(p, timestamp, 'zfd', d2)
|
||||||
if reach1.has_bedload():
|
if reach1.has_bedload():
|
||||||
d3 = d1-d2
|
d3 = d1 - d2
|
||||||
reach3.set(p, timestamp, 'zfd', d3)
|
reach3.set(p, timestamp, 'zfd', d3)
|
||||||
|
|
||||||
limits = reach3.profile(p).geometry.get_water_limits(
|
limits = reach3.profile(p).geometry.get_water_limits(
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue