-
Notifications
You must be signed in to change notification settings - Fork 62
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Problem statement
- testing Pypsa workflows such as pypsa-eur with snakemake is difficult. Pytests doesn't integrate well with it for example. This is because snakemake jobs are subprocesses and tests conditions can't easily be passed to the subprocess
- in a pure python package, the pypsa network solve step would be mocked (e.g. return q_nom_opt = q_nom)
Request and possible implementation
- it would be great to have an "is_test" or "mock" flag. In this case the unoptimised network would be returned with mocked opt values (linopy would not run at all)
- the argument is_test could be passed to linopy as a kwarg in network.optimize if network.optimize already takes kwargs.
Thanks!
lkstrp
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request