mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
f16856d23b
commit
0383dc18ae
|
|
@ -51,7 +51,7 @@ class InternalMeshing(AMeshingTool):
|
|||
return reach
|
||||
|
||||
# we never modify original profiles, we work on copies
|
||||
m_profiles= self.st_to_m(reach, limites)
|
||||
m_profiles = self.st_to_m(reach, limites)
|
||||
new_profiles = self.interpolate_transversal_step(m_profiles,
|
||||
step)
|
||||
|
||||
|
|
|
|||
|
|
@ -241,8 +241,8 @@ class UpdateRKCommand(QUndoCommand):
|
|||
self._new_rks = None
|
||||
|
||||
def undo(self):
|
||||
for rk, profile in zip(self._rks, self._reach.profiles):
|
||||
profile.rk = rk
|
||||
for rk, profile in zip(self._rks, self._reach.profiles):
|
||||
profile.rk = rk
|
||||
|
||||
def redo(self):
|
||||
if self._new_rks is None:
|
||||
|
|
@ -254,6 +254,7 @@ class UpdateRKCommand(QUndoCommand):
|
|||
for rk, profile in zip(self._new_rks, self._reach.profiles):
|
||||
profile.rk = rk
|
||||
|
||||
|
||||
class MeshingCommand(QUndoCommand):
|
||||
def __init__(self, reach, mesher, data, tableView):
|
||||
QUndoCommand.__init__(self)
|
||||
|
|
@ -333,6 +334,7 @@ class MeshingCommand(QUndoCommand):
|
|||
QItemSelectionModel.Select
|
||||
)
|
||||
|
||||
|
||||
class PurgeCommand(QUndoCommand):
|
||||
def __init__(self, reach, np_purge):
|
||||
QUndoCommand.__init__(self)
|
||||
|
|
|
|||
Loading…
Reference in New Issue