mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
8c697a9621
commit
e56d88937a
|
|
@ -109,7 +109,7 @@ class BoundaryConditionAdisTS(SQLSubModel):
|
|||
tmp = next(filter(
|
||||
lambda n: n.id == row[3], data["nodes"]),
|
||||
None)
|
||||
if tmp != None:
|
||||
if tmp is not none None:
|
||||
bc.node = tmp.id
|
||||
else:
|
||||
bc.node = -1
|
||||
|
|
|
|||
|
|
@ -147,8 +147,8 @@ class TableModel(PamhyrTableModel):
|
|||
if n is None:
|
||||
return self._trad["not_associated"]
|
||||
tmp = next(filter(lambda x: x.id == n, self._data._nodes),
|
||||
None)
|
||||
if tmp != None:
|
||||
None)
|
||||
if tmp is not None:
|
||||
return tmp.name
|
||||
else:
|
||||
return self._trad["not_associated"]
|
||||
|
|
|
|||
|
|
@ -157,7 +157,6 @@ class Config(SQL):
|
|||
posix = os.name == 'posix'
|
||||
ext = "" if posix else ".exe"
|
||||
|
||||
|
||||
self.execute(f"""
|
||||
INSERT INTO solver VALUES (
|
||||
'adistswc',
|
||||
|
|
|
|||
Loading…
Reference in New Issue