adists_release
Theophile Terraz 2024-12-09 09:28:00 +01:00
parent 8c697a9621
commit e56d88937a
3 changed files with 3 additions and 4 deletions

View File

@ -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

View File

@ -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"]

View File

@ -157,7 +157,6 @@ class Config(SQL):
posix = os.name == 'posix'
ext = "" if posix else ".exe"
self.execute(f"""
INSERT INTO solver VALUES (
'adistswc',