Merge pull request #989 from PyPSA/share-resources

scenario management: fix shared resources
This commit is contained in:
Fabian Hofmann 2024-03-25 16:31:21 +01:00 committed by GitHub
commit 60fe95ddf7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -106,7 +106,7 @@ def get_run_path(fn, dir, rdir, shared_resources):
elif isinstance(shared_resources, str): elif isinstance(shared_resources, str):
rdir = shared_resources + "/" rdir = shared_resources + "/"
elif isinstance(shared_resources, bool): elif isinstance(shared_resources, bool):
rdir = "" rdir = "" if shared_resources else rdir
else: else:
raise ValueError( raise ValueError(
"shared_resources must be a boolean, str, or 'base' for special handling." "shared_resources must be a boolean, str, or 'base' for special handling."