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