adists_release
Theophile Terraz 2024-07-30 14:19:42 +02:00
parent 61fce32c60
commit 80a463a91e
1 changed files with 4 additions and 5 deletions

View File

@ -408,11 +408,10 @@ class ProfileXYZ(Profile, SQLSubModel):
return 0
length = 0.0
for s,e in zip(start, end):
for s, e in zip(start, end):
length += abs(s - e)
return length
def wet_perimeter(self, z):
lines = self.wet_lines(z)
@ -477,10 +476,10 @@ class ProfileXYZ(Profile, SQLSubModel):
[zz[i], zz[i+1]],
[station[i], station[i+1]]
)
line.append([y,z])
line.append([y, z])
if zz[i] < z:
line.append([station[i],zz[i]])
line.append([station[i], zz[i]])
if zz[i] <= z and zz[i+1] > z:
y = np.interp(
@ -488,7 +487,7 @@ class ProfileXYZ(Profile, SQLSubModel):
[zz[i], zz[i+1]],
[station[i], station[i+1]]
)
line.append([y,z])
line.append([y, z])
lines.append(geometry.LineString(line))
line = []