mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
e7b63fe270
commit
1b2f98494b
|
|
@ -311,7 +311,12 @@ class TableModel(PamhyrTableModel):
|
|||
current_reach = int(line[1]) - 1
|
||||
if (current_reach <= len(self._data.enable_edges()) and
|
||||
current_reach >= 0):
|
||||
data.append([self._data.enable_edges()[current_reach], float(line[2]), float(line[3])])
|
||||
data.append(
|
||||
[self._data.enable_edges()[current_reach],
|
||||
float(line[2]),
|
||||
float(line[3])
|
||||
]
|
||||
)
|
||||
else:
|
||||
if (current_reach <= len(self._data.enable_edges()) and
|
||||
current_reach >= 0):
|
||||
|
|
|
|||
|
|
@ -256,7 +256,7 @@ class ImportCommand(QUndoCommand):
|
|||
|
||||
def redo(self):
|
||||
self._lcs.delete_i(self._tab, self._old_rows)
|
||||
if self._new_lc == None:
|
||||
if self._new_lc is None:
|
||||
self._new_lc = []
|
||||
for row, data in enumerate(self._data):
|
||||
new = LateralContrib(status=self._lcs._status)
|
||||
|
|
@ -270,6 +270,7 @@ class ImportCommand(QUndoCommand):
|
|||
for row, el in enumerate(self._new_lc):
|
||||
self._lcs.insert(self._tab, row, el)
|
||||
|
||||
|
||||
class DuplicateCommand(QUndoCommand):
|
||||
def __init__(self, lcs, tab, rows, lc):
|
||||
QUndoCommand.__init__(self)
|
||||
|
|
|
|||
Loading…
Reference in New Issue