mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8
This commit is contained in:
1 parent
61fce32c60
commit
80a463a91e
1 file changed
+4
-5
@@ -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 = []
|
||||
|
||||
|
||||
Reference in new issue
Block a user