Solver: Mage: Fix read bin.

This commit is contained in:
Pierre-Antoine Rouby committed 2024-01-24 16:16:13 +01:00
1 parent f56d87f648
commit 7ae64d390f
1 file changed
+2 -4
+2 -4
View File
@@ -1009,10 +1009,8 @@ class Mage8(Mage):
# Set data for profile RI # Set data for profile RI
reach.set(ri, timestamp, key, d) reach.set(ri, timestamp, key, d)
if key == "Z": if key == "Z":
profile = study.river\ profile = reach.profile(ri)
.current_reach()\ ptX, ptY = profile.geometry.get_water_limits(d)
.reach.profile(ri)
ptX, ptY = profile.get_water_limits(d)
reach.set(ri, timestamp, "ptX", ptX) reach.set(ri, timestamp, "ptX", ptX)
reach.set(ri, timestamp, "ptY", ptY) reach.set(ri, timestamp, "ptY", ptY)