mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
pep8
This commit is contained in:
1 parent
8c697a9621
commit
e56d88937a
3 files changed
+3
-4
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user