Commit 80a463a9 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

pep8

Showing with 4 additions and 5 deletions
+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 = []
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment