data view complete pols

adists_new
Youcef AOUAD 2024-09-02 11:42:51 +02:00
parent f3007e2fe2
commit 629b856788
1 changed files with 19 additions and 0 deletions

View File

@ -636,6 +636,25 @@ class AdisTSlc(AdisTS):
print(data_tmp["AAA-silt"]) print(data_tmp["AAA-silt"])
pollutants_keys = list(data_tmp.keys())
timestamps_keys = list(data_tmp[pollutants_keys[0]].keys())
phys_data_names = list(data_tmp[pollutants_keys[0]][timestamps_keys[0]].keys())
print("pol keys: ", pollutants_keys)
print("t keys: ", timestamps_keys)
print("phys var: ", phys_data_names)
for i in range(ismax):
reach = ip_to_r(i)
p_i = ip_to_ri(reach, i)
for t_data in timestamps_keys:
pol_view = []
for pol in pollutants_keys:
pol_view.append(set(data_tmp[pol][t_data].values()))
reach.set(p_i, t_data, "pols", pol_view)
@timer @timer
def results(self, study, repertory, qlog=None, name=None): def results(self, study, repertory, qlog=None, name=None):
self._study = study self._study = study