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( tmp = next(filter(
lambda n: n.id == row[3], data["nodes"]), lambda n: n.id == row[3], data["nodes"]),
None) None)
if tmp != None: if tmp is not none None:
bc.node = tmp.id bc.node = tmp.id
else: else:
bc.node = -1 bc.node = -1

View File

@ -148,7 +148,7 @@ class TableModel(PamhyrTableModel):
return self._trad["not_associated"] return self._trad["not_associated"]
tmp = next(filter(lambda x: x.id == n, self._data._nodes), tmp = next(filter(lambda x: x.id == n, self._data._nodes),
None) None)
if tmp != None: if tmp is not None:
return tmp.name return tmp.name
else: else:
return self._trad["not_associated"] return self._trad["not_associated"]

View File

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