mirror of https://gitlab.com/pamhyr/pamhyr2
parent
5edcf15072
commit
c610717220
|
|
@ -501,7 +501,7 @@ class ResultsWindowAdisTS(PamhyrWindow):
|
||||||
self.update_table_selection_profile(profile_id)
|
self.update_table_selection_profile(profile_id)
|
||||||
|
|
||||||
if pol_id is not None:
|
if pol_id is not None:
|
||||||
self._current_pol_id = [p+1 for p in pol_id] # remove total_sediment
|
self._current_pol_id = [p+1 for p in pol_id] # rm total_sediment
|
||||||
self.plot_cdt.set_pollutant(self._current_pol_id)
|
self.plot_cdt.set_pollutant(self._current_pol_id)
|
||||||
self.plot_cdx.set_pollutant(self._current_pol_id)
|
self.plot_cdx.set_pollutant(self._current_pol_id)
|
||||||
self.plot_mdx.set_pollutant(self._current_pol_id)
|
self.plot_mdx.set_pollutant(self._current_pol_id)
|
||||||
|
|
@ -738,45 +738,3 @@ class ResultsWindowAdisTS(PamhyrWindow):
|
||||||
))
|
))
|
||||||
|
|
||||||
return my_dict
|
return my_dict
|
||||||
|
|
||||||
#def export_reach(self, reach, directory):
|
|
||||||
#name = reach.name
|
|
||||||
#name = name.replace(" ", "-")
|
|
||||||
|
|
||||||
#file_name = os.path.join(
|
|
||||||
#directory,
|
|
||||||
#f"reach_{name}.csv"
|
|
||||||
#)
|
|
||||||
|
|
||||||
#with open(file_name, 'w', newline='') as csvfile:
|
|
||||||
#writer = csv.writer(csvfile, delimiter=',',
|
|
||||||
#quotechar='|', quoting=csv.QUOTE_MINIMAL)
|
|
||||||
#writer.writerow(["name", "rk", "data-file"])
|
|
||||||
#for profile in reach.profiles:
|
|
||||||
#p_file_name = os.path.join(
|
|
||||||
#directory,
|
|
||||||
#f"cs_{profile.geometry.id}.csv"
|
|
||||||
#)
|
|
||||||
|
|
||||||
#writer.writerow([
|
|
||||||
#profile.name,
|
|
||||||
#profile.rk,
|
|
||||||
#p_file_name
|
|
||||||
#])
|
|
||||||
|
|
||||||
#self.export_profile(reach, profile, p_file_name)
|
|
||||||
|
|
||||||
#def export_profile(self, reach, profile, file_name):
|
|
||||||
#with open(file_name, 'w', newline='') as csvfile:
|
|
||||||
#writer = csv.writer(csvfile, delimiter=',',
|
|
||||||
#quotechar='|', quoting=csv.QUOTE_MINIMAL)
|
|
||||||
|
|
||||||
#writer.writerow(["timestamp", "z", "q"])
|
|
||||||
#timestamps = sorted(self._results.get("timestamps"))
|
|
||||||
|
|
||||||
#for ts in timestamps:
|
|
||||||
#writer.writerow([
|
|
||||||
#ts,
|
|
||||||
#profile.get_ts_key(ts, "Z"),
|
|
||||||
#profile.get_ts_key(ts, "Q"),
|
|
||||||
#])
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue