mirror of https://gitlab.com/pamhyr/pamhyr2
raw data done for one timestamp
parent
cb8ecc752b
commit
c7406d3bce
|
|
@ -60,7 +60,7 @@ class TableModel(PamhyrTableModel):
|
||||||
tmp_list = self._data.pollutants_list.copy()
|
tmp_list = self._data.pollutants_list.copy()
|
||||||
tmp_list.remove("total_sediment")
|
tmp_list.remove("total_sediment")
|
||||||
###print(type(tmp_list))
|
###print(type(tmp_list))
|
||||||
tmp_list.insert(len(tmp_list), "total_sediment")
|
#tmp_list.insert(len(tmp_list), "total_sediment")
|
||||||
self._lst = tmp_list
|
self._lst = tmp_list
|
||||||
###print("=====table pollutants: ", self._lst)
|
###print("=====table pollutants: ", self._lst)
|
||||||
|
|
||||||
|
|
@ -99,13 +99,20 @@ class TableModel(PamhyrTableModel):
|
||||||
tmp_list = self._data.pollutants_list.copy()
|
tmp_list = self._data.pollutants_list.copy()
|
||||||
tmp_list.remove("total_sediment")
|
tmp_list.remove("total_sediment")
|
||||||
tmp_list2 = self._data.pollutants_list.copy()
|
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:
|
for pol in tmp_list:
|
||||||
pol_index = tmp_list2.index(pol)
|
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:
|
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]
|
v = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][0]
|
||||||
return f"{v:.4f}"
|
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]
|
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]
|
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]
|
m3 = self._lst[row].get_ts_key(self._timestamp, "pols")[pol_index][3]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue