diff --git a/src/Meshing/Internal.py b/src/Meshing/Internal.py index b2a0cf97..4d579e9b 100644 --- a/src/Meshing/Internal.py +++ b/src/Meshing/Internal.py @@ -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) diff --git a/src/View/Geometry/UndoCommand.py b/src/View/Geometry/UndoCommand.py index 9098d6b6..9278caeb 100644 --- a/src/View/Geometry/UndoCommand.py +++ b/src/View/Geometry/UndoCommand.py @@ -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)