Commit c5f918c8 authored by Theophile Terraz's avatar Theophile Terraz
Browse files

pep8

No related merge requests found
Showing with 11 additions and 11 deletions
+11 -11
......@@ -46,7 +46,9 @@ class Results(object):
el.split("/")[-1][0:-4]
for el in glob.glob(repertory_results + "/*.bin")
]
self._pollutants_list.insert(0, self._pollutants_list.pop(self._pollutants_list.index("total_sediment")))
self._pollutants_list.insert(0, self._pollutants_list.pop(
self._pollutants_list.index("total_sediment"))
)
self._phys_var_list = ["C", "G", "M", "D", "L", "N", "R"]
......
......@@ -429,9 +429,6 @@ class AdisTSwc(AdisTS):
list_characteristics = ["type", "diametre", "rho", "porosity",
"cdc_riv", "cdc_cas", "apd", "ac", "bc"]
print("pol_data:")
print(pol_data[0])
if len(list_characteristics) <= (len(pol_data[0])):
for i in range(len(list_characteristics)):
f.write(f"{list_characteristics[i]} = {pol_data[0][i]}\n")
......
......@@ -189,7 +189,8 @@ class TableModel(PamhyrTableModel):
)
else:
pol = next(filter(lambda x: x.name == value,
self._data._Pollutants.Pollutants_List))
self._data._Pollutants.Pollutants_List)
)
self._undo.push(
SetPolCommand(
self._lst, row, pol.id
......
......@@ -91,12 +91,12 @@ class TableModel(PamhyrTableModel):
self.layoutAboutToBeChanged.emit()
self._undo.push(PasteCommand(self._data, row,
list(
map(
lambda d: self._data.new_from_data(d),
data
)
)
list(
map(
lambda d: self._data.new_from_data(d),
data
)
)
)
)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment