pypsa-meets-earth / pypsa-earth

PyPSA-Earth: A flexible Python-based open optimisation model to study energy system futures around the world.
https://pypsa-earth.readthedocs.io/en/latest/
219 stars 173 forks source link

add unit test and test infrastructure #625

Open pz-max opened 1 year ago

pz-max commented 1 year ago

Currently, we are only performing continous integration tests for the full pipeline. We recognized that some code snippets should be tested to avoid errors.

Once example is the split_cells() function

Input: rows, voltage, frequency row 1, [66000;220000], 50 Desired output: row 1, 66000, 50 row 2, 220000, 50

More discussed by @pz-max in https://github.com/pypsa-meets-earth/pypsa-earth/pull/620#discussion_r1127055344_

ekatef commented 1 month ago

FYI @finozzifa