Skip to content

Commit

Permalink
Added ThematicVars to help with future conversion between camelCase a…
Browse files Browse the repository at this point in the history
…nd simulator variable names. Also fix for ruff
  • Loading branch information
Sigurd-Borge committed Oct 18, 2024
1 parent 764edff commit 50a5fc4
Showing 1 changed file with 96 additions and 1 deletion.
97 changes: 96 additions & 1 deletion src/antares/model/settings/thematic_trimming.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ class DefaultThematicTrimmingParameters(BaseModel, alias_generator=to_camel):
other5_withdrawal: bool = True
other5_level: bool = True
# since v8.8
sts_cashflow_by_cluster: Optional[bool] = None
sts_cashflow_by_cluster: bool = True

@property
Expand All @@ -137,3 +136,99 @@ class ThematicTrimmingParameters(DefaultThematicTrimmingParameters):
class ThematicTrimmingParametersLocal(DefaultThematicTrimmingParameters):
pass


class ThematicVars(Enum):
balance = "BALANCE"
dens = "DENS"
load = "LOAD"
lold = "LOLD"
lolp = "LOLP"
miscNdg = "MISC. NDG"
mrgPrice = "MRG. PRICE"
opCost = "OP. COST"
ovCost = "OV. COST"
rowBal = "ROW BAL."
spilEnrg = "SPIL. ENRG"
unspEnrg = "UNSP. ENRG"
hCost = "H. COST"
hInfl = "H. INFL"
hLev = "H. LEV"
hOvfl = "H. OVFL"
hPump = "H. PUMP"
hRor = "H. ROR"
hStor = "H. STOR"
hVal = "H. VAL"
psp = "PSP"
renw1 = "RENW. 1"
renw2 = "RENW. 2"
renw3 = "RENW. 3"
renw4 = "RENW. 4"
resGenerationByPlant = "RES generation by plant"
solar = "SOLAR"
solarConcrt = "SOLAR CONCRT."
solarPv = "SOLAR PV"
solarRooft = "SOLAR ROOFT"
wind = "WIND"
windOffshore = "WIND OFFSHORE"
windOnshore = "WIND ONSHORE"
batteryInjection = "BATTERY_INJECTION"
batteryLevel = "BATTERY_LEVEL"
batteryWithdrawal = "BATTERY_WITHDRAWAL"
other1Injection = "OTHER1_INJECTION"
other1Level = "OTHER1_LEVEL"
other1Withdrawal = "OTHER1_WITHDRAWAL"
other2Injection = "OTHER2_INJECTION"
other2Level = "OTHER2_LEVEL"
other2Withdrawal = "OTHER2_WITHDRAWAL"
other3Injection = "OTHER3_INJECTION"
other3Level = "OTHER3_LEVEL"
other3Withdrawal = "OTHER3_WITHDRAWAL"
other4Injection = "OTHER4_INJECTION"
other4Level = "OTHER4_LEVEL"
other4Withdrawal = "OTHER4_WITHDRAWAL"
other5Injection = "OTHER5_INJECTION"
other5Level = "OTHER5_LEVEL"
other5Withdrawal = "OTHER5_WITHDRAWAL"
pondageInjection = "PONDAGE_INJECTION"
pondageLevel = "PONDAGE_LEVEL"
pondageWithdrawal = "PONDAGE_WITHDRAWAL"
pspClosedInjection = "PSP_CLOSED_INJECTION"
pspClosedLevel = "PSP_CLOSED_LEVEL"
pspClosedWithdrawal = "PSP_CLOSED_WITHDRAWAL"
pspOpenInjection = "PSP_OPEN_INJECTION"
pspOpenLevel = "PSP_OPEN_LEVEL"
pspOpenWithdrawal = "PSP_OPEN_WITHDRAWAL"
stsCashflowByCluster = "STS CASHFLOW BY CLUSTER"
stsInjByPlant = "STS inj by plant"
stsLvlByPlant = "STS lvl by plant"
stsWithdrawalByPlant = "STS withdrawal by plant"
avlDtg = "AVL DTG"
co2Emis = "CO2 EMIS."
coal = "COAL"
dtgByPlant = "DTG by plant"
dtgMrg = "DTG MRG"
gas = "GAS"
lignite = "LIGNITE"
maxMrg = "MAX MRG"
miscDtg = "MISC. DTG"
miscDtg2 = "MISC. DTG 2"
miscDtg3 = "MISC. DTG 3"
miscDtg4 = "MISC. DTG 4"
mixFuel = "MIX. FUEL"
nodu = "NODU"
noduByPlant = "NODU by plant"
npCost = "NP COST"
npCostByPlant = "NP Cost by plant"
nuclear = "NUCLEAR"
oil = "OIL"
profitByPlant = "Profit by plant"
congFeeAbs = "CONG. FEE (ABS.)"
congFeeAlg = "CONG. FEE (ALG.)"
congProbMinus = "CONG. PROB -"
congProbPlus = "CONG. PROB +"
flowLin = "FLOW LIN."
flowQuad = "FLOW QUAD."
hurdleCost = "HURDLE COST"
loopFlow = "LOOP FLOW"
margCost = "MARG. COST"
ucapLin = "UCAP LIN."

0 comments on commit 50a5fc4

Please sign in to comment.