mirror of
https://gitlab.com/pamhyr/pamhyr2.git
synced 2026-10-30 03:20:41 +01:00
raw data for adists
This commit is contained in:
1 parent
4c522ae050
commit
cb8ecc752b
3 files changed
+44
-23
No files matched your search
@@ -24,7 +24,13 @@ _translate = QCoreApplication.translate
|
||||
|
||||
|
||||
class ResultsTranslate(MainTranslate):
|
||||
def __init__(self):
|
||||
def __init__(self, pollutants=None):
|
||||
if pollutants is not None:
|
||||
self.pollutants = pollutants
|
||||
self.pollutants.remove("total_sediment")
|
||||
else:
|
||||
self.pollutants = pollutants
|
||||
|
||||
super(ResultsTranslate, self).__init__()
|
||||
|
||||
self._dict["Results"] = _translate("Results", "Results")
|
||||
@@ -45,7 +51,7 @@ class ResultsTranslate(MainTranslate):
|
||||
)
|
||||
|
||||
self._sub_dict["table_headers_reach"] = {
|
||||
"name": _translate("Results", "Pollutant name"),
|
||||
"name": _translate("Results", "Reach name"),
|
||||
}
|
||||
|
||||
self._sub_dict["table_headers_phys_var"] = {
|
||||
@@ -58,12 +64,21 @@ class ResultsTranslate(MainTranslate):
|
||||
}
|
||||
|
||||
self._sub_dict["table_headers_pollutants"] = {
|
||||
"name": _translate("Results", "Reach name"),
|
||||
"name": _translate("Results", "Pollutant name"),
|
||||
}
|
||||
|
||||
self._sub_dict["table_headers_raw_data"] = {
|
||||
"name": _translate("Results", "Profile"),
|
||||
"water_elevation": self._dict["unit_water_elevation"],
|
||||
"discharge": self._dict["unit_discharge"],
|
||||
"speed": self._dict["unit_speed"],
|
||||
}
|
||||
if self.pollutants is not None:
|
||||
self._sub_dict["table_headers_raw_data"] = {
|
||||
"name": _translate("Results", "Profile"),
|
||||
}
|
||||
for pol in self.pollutants:
|
||||
self._sub_dict["table_headers_raw_data"][pol + " Concentration"] = pol + "\n Concentration"
|
||||
self._sub_dict["table_headers_raw_data"][pol + " Mass"] = pol + "\n Mass"
|
||||
else:
|
||||
self._sub_dict["table_headers_raw_data"] = {
|
||||
"name": _translate("Results", "Profile"),
|
||||
"water_elevation": self._dict["unit_water_elevation"],
|
||||
"discharge": self._dict["unit_discharge"],
|
||||
"speed": self._dict["unit_speed"],
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user