Open trevorb1 opened 7 months ago
Another advantage of packaging is it allows us to group our modules a little better. For example, we can group all plot_*.py
modules into a plotting/
directory
When sorting through this, would be good to figure out how to update the automatic pre-commit PRs so both the master and develop branch update at the same time
Feature Request
I need to use the
INTERCONNECT_2_CODE
constant in the snakefile, as some demand data will come in at a state level. It would be nice to be able to access this constant directly, instead of having to duplicate it in the snakefile. I guess this would require packaging pypsa-usa to allow for this. For example, we could just call:Suggested Solution
Ive use pyscaffold and hatch to do this before. They both allow for converting existing projects to packaged projects. Im not saying we push pypsa-usa to pypi, but allowing for local install via
pip install .
(orpip install -e .
for developers) would be nice. Also, I am def not super experienced with packaging projects, so there may be a better tool to do this. imo hatch was a little easier to work with though, due to less setup files.Additional Info
No response