From c067c10a80afced5128e1b7c18b7d7d341e199f9 Mon Sep 17 00:00:00 2001 From: "Mindermann, Kennedy" Date: Thu, 19 Dec 2024 13:42:52 -0600 Subject: [PATCH] fix bug #196 --- runbatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/runbatch.py b/runbatch.py index a66c5d0..a5cb547 100644 --- a/runbatch.py +++ b/runbatch.py @@ -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':