LC: Add specific Lateral contribution types.

This commit is contained in:
Pierre-Antoine Rouby committed 2023-05-12 16:54:34 +02:00
1 parent 906ea621b6
commit b786bb44e2
6 files changed
+24 -48

No files matched your search

+7 -10
View File
@@ -3,18 +3,16 @@
from PyQt5.QtCore import QCoreApplication
from Model.LateralContribution.LateralContributionTypes import (
NotDefined, PonctualContribution,
TimeOverZ, TimeOverDebit, ZOverDebit
NotDefined, LateralContrib, Rain, Evaporation,
)
_translate = QCoreApplication.translate
long_types = {
"ND": _translate("LateralContribution", "Not defined"),
"PC": _translate("LateralContribution", "Ponctual contribution"),
"TZ": _translate("LateralContribution", "Time over Z"),
"TD": _translate("LateralContribution", "Time over Debit"),
"ZD": _translate("LateralContribution", "Z over Debit"),
"LC": _translate("LateralContribution", "Lateral contribution"),
"RA": _translate("LateralContribution", "Rain"),
"EV": _translate("LateralContribution", "Evaporation"),
}
table_headers = {
@@ -25,8 +23,7 @@ table_headers = {
LC_types = {
"ND": NotDefined,
"PC": PonctualContribution,
"TZ": TimeOverZ,
"TD": TimeOverDebit,
"ZD": ZOverDebit
"LC": LateralContrib,
"RA": Rain,
"EV": Evaporation,
}