mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
61fce32c60
commit
80a463a91e
|
|
@ -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 = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue