WildcardError: Scenario management with myopic

45 views
Skip to first unread message

Alexander Meisinger

unread,
May 28, 2025, 10:11:11 AMMay 28
to pypsa
Dear community,

I would like to use the scenario management option in combination with Myopic, but I am receiving a wildcard error. All scenarios are defined in 'scenarios.import-H2', which is linked to 'config.main'. Resources should be shared between the scenarios; therefore all scenarios are linked to the same resource file. However, I still get a wildcard error (see attachment). Do you have any ideas on how to fix it?

Thanks in advance for your help.

Best regards,
Alex


scenarios.import-H2.yaml
config.main.yaml
WildcardError.png

Bobby Xiong

unread,
May 28, 2025, 10:18:55 AMMay 28
to pypsa
Edit:// Reply to everyone

Hi Alex,

I ran into the same issue. Unfortunately, shared_resources in combination with myopic optimisation is currently not working/broken, so you have to set shared_resources, policy to false.
Scenario management for myopic optimisation is still working though, the only downside is that resources are created multiple times, even when they are identical.

Best,
Bobby

Alexander Meisinger

unread,
Jun 4, 2025, 3:13:08 AMJun 4
to pypsa
Hey Bobby,

Thanks for your reply! Good to know that I'm not the only one experiencing this. I implemented a workaround using wildcards, but this is quite specific to some config parameters so I won't create a PR. Just message me if you have any questions.

Best,
Alex

Reply all
Reply to author
Forward
0 new messages