Skip to content

Commit 9a8ab5f

Browse files
committed
Add pEnableSoftVoltageLimits to the bool converter
1 parent df7ac4e commit 9a8ab5f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

CaseStudy.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ def __init__(self,
206206
raise ValueError("Column 'pEnableInvest' in 'Power_Network' contains NaN values. Please fill all entries with either 0 or 1.")
207207

208208
if self.dPower_Parameters["pEnablePowerImportExport"] and (self.dPower_ImportExport["ImpExpPrice"] == 0).any():
209-
raise ValueError("Column 'ImpExpPrice' in 'Power_ImportExport' contains 0 values. Please fill all entries with non-zero prices.")
209+
raise ValueError("Column 'ImpExpPrice' in 'Power_ImportExport' contains 0 values. Please fill all entries with non-zero prices (can be very small).")
210210

211211
# === SEQUENTIAL DEPENDENTS ===
212212
if dPower_WeightsRP is not None:
@@ -449,7 +449,7 @@ def get_dPower_Parameters(self):
449449
dPower_Parameters = dPower_Parameters.dropna(how="all")
450450
dPower_Parameters = dPower_Parameters.set_index('General')
451451

452-
self.yesNo_to_bool(dPower_Parameters, ['pEnableChDisPower', 'pFixStInterResToIniReserve', 'pEnableSoftLineLoadLimits', 'pEnableThermalGen', 'pEnableRoR', 'pEnableVRES', 'pEnableStorage', 'pEnablePowerImportExport', 'pForcePrimitiveStorageUsage', 'pEnableSOCP'])
452+
self.yesNo_to_bool(dPower_Parameters, ['pEnableChDisPower', 'pFixStInterResToIniReserve', 'pEnableSoftLineLoadLimits', 'pEnableSoftVoltageLimits', 'pEnableThermalGen', 'pEnableRoR', 'pEnableVRES', 'pEnableStorage', 'pEnablePowerImportExport', 'pForcePrimitiveStorageUsage', 'pEnableSOCP'])
453453

454454
# Transform to make it easier to access values
455455
dPower_Parameters = dPower_Parameters.drop(dPower_Parameters.columns[1:], axis=1) # Drop all columns but "Value" (rest is just for information in the Excel)

0 commit comments

Comments
 (0)