mirror of https://gitlab.com/pamhyr/pamhyr2
pep8
parent
8c697a9621
commit
e56d88937a
|
|
@ -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
|
||||||
|
|
|
||||||
|
|
@ -147,8 +147,8 @@ class TableModel(PamhyrTableModel):
|
||||||
if n is None:
|
if n is None:
|
||||||
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"]
|
||||||
|
|
|
||||||
|
|
@ -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',
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue