Commit c7406d3b authored by Youcef Aouad's avatar Youcef Aouad
Browse files

raw data done for one timestamp

No related merge requests found
Pipeline #58367 passed with stages
in 57 seconds
Showing with 10 additions and 3 deletions
+10 -3
......@@ -60,7 +60,7 @@ class TableModel(PamhyrTableModel):
tmp_list = self._data.pollutants_list.copy()
tmp_list.remove("total_sediment")
###print(type(tmp_list))
tmp_list.insert(len(tmp_list), "total_sediment")
#tmp_list.insert(len(tmp_list), "total_sediment")
self._lst = tmp_list
###print("=====table pollutants: ", self._lst)
......@@ -99,13 +99,20 @@ class TableModel(PamhyrTableModel):
tmp_list = self._data.pollutants_list.copy()
tmp_list.remove("total_sediment")
tmp_list2 = self._data.pollutants_list.copy()
print("=============================list polutants table raw: ", tmp_list)
print("=============================list polutants table raw: ", tmp_list2)
for pol in tmp_list:
pol_index = tmp_list2.index(pol)
header_name = pol + "\n Concentration"
print("=============================pol index: ", pol_index)
header_name = pol + " Concentration"
print("=============================Headers: ", self._headers[column])
print("=============================Headers: ", header_name)
if self._headers[column] == header_name:
print("=============================Headers: ", self._headers[column])
print("=============================Headers: ", header_name)
v = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][0]
return f"{v:.4f}"
elif self._headers[column] == pol + "\n Mass":
elif self._headers[column] == pol + " Mass":
m1 = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][1]
m2 = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][2]
m3 = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][3]
......
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