Open trevorb1 opened 9 months ago
9777d41d260933686baf58d11e56e377063f7e90 created main.yml file for github CI actions. Pulled directly from PyPSA-EUR with modification for our repo.....
Workflow fails- I disabled the action workflow until we spend time to fix the issues
We need to change this so the config is called directly from the snakemake run command.
While this does not test the networks, the Calliope team showcase a nice way of validating all configuration files against standardized schemas, here
Chatting with @ktehranchi, a potential way of testing workflow functionality is to:
import pypsa
from pandas.testing import assert_frame_equal
n_fixture = pypsa.Network(fixture.nc)
n_new = pypsa.Network(new.nc)
assert_frame_equal(n_fixture.loads_t["p_set"], n_new.loads_t["p_set"]
Is this still opened? I think I can work on this.
@shankarkarki - it is still open! It does feels like a few things have been discussed in this thread, that may be worth breaking out:
May be worth breaking this out into separate issues to facilitate discussion on each topic. Replicating the PyPSA-Eur testing of the workflow (ie. item 3) for PyPSA-USA would probably be doable! But maybe @ktehranchi has other thoughts.
@shankarkarki let me know if you would like to chat about this issue! I agree with trevor on breaking out this ticket. A good place to start would be to reference the testing set up in pypsa-eur for inspiration
On the testing of the entire workflow front, this repository may be a good reference. They give examples on how to call different config files for their CI, and how to set up simple data + config files for their tests.
Feature Request
Similar to PyPSA-Eur implementation here, adding in a GitHub action to test network configurations would be good.
Suggested Solution
No response
Additional Info
No response