Skip to content

Commit

Permalink
Merge pull request #200 from NREL/km/bugfix
Browse files Browse the repository at this point in the history
Fix bug with "historic" switch
  • Loading branch information
kennedy-mindermann authored Dec 19, 2024
2 parents d2c0f87 + c067c10 commit e9ae6fe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runbatch.py
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ def check_compatibility(sw):

### Compatible switch combinations
if sw['GSw_EFS1_AllYearLoad'] == 'historic' :
if ('demand_' + sw['demandscen'] +'.csv') in os.listdir(os.path.join(reeds_path, 'inputs','load')) :
if ('demand_' + sw['demandscen'] +'.csv') not in os.listdir(os.path.join(reeds_path, 'inputs','load')) :
raise ValueError("The demand file specified by the demandscen switch is not in the inputs/load folder")

if sw['GSw_PRM_scenario'] == 'none':
Expand Down

0 comments on commit e9ae6fe

Please sign in to comment.