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
1da3461dfe
commit
6bb0b3c6df
2 files changed
+7
-7
No files matched your search
@@ -95,7 +95,6 @@ class InternalMeshing(AMeshingTool):
|
||||
guide_list[i],
|
||||
guide_list[i+1])
|
||||
|
||||
|
||||
def interpolate_transversal_step(self,
|
||||
reach,
|
||||
limites,
|
||||
@@ -133,6 +132,7 @@ class InternalMeshing(AMeshingTool):
|
||||
p.rk = reach.profiles[ptr0].rk + \
|
||||
dj*(reach.profiles[ptr].rk -
|
||||
reach.profiles[ptr0].rk)
|
||||
p.name = f'interpol{p.rk}'
|
||||
reach.insert_profile(ptr, p)
|
||||
ptr += 1 # next profile, original
|
||||
|
||||
|
||||
@@ -900,12 +900,12 @@ class ProfileXYZ(Profile, SQLSubModel):
|
||||
self.point(i+1).z = 0.5 * self.point(i).z + 0.5 * self.point(i+2).z
|
||||
|
||||
def copy(self):
|
||||
p = ProfileXYZ(name = self.name,
|
||||
rk = self.rk,
|
||||
reach = self.reach,
|
||||
nb_point = 0,
|
||||
code1 = 0, code2 = 0,
|
||||
status = self.reach._status)
|
||||
p = ProfileXYZ(name=self.name,
|
||||
rk=self.rk,
|
||||
reach=self.reach,
|
||||
nb_point=0,
|
||||
code1=0, code2=0,
|
||||
status=self.reach._status)
|
||||
for i, k in enumerate(self.points):
|
||||
p.insert_point(i, k.copy())
|
||||
|
||||
|
||||
Reference in new issue
Block a user