Open trevorb1 opened 1 month ago
Oh, this is failing with only a single horizon as well
hmm... investment periods is not being assigned higher up in the workflow. This is in cluster network
Its assigned correctly at the start and when writing out in add_electricity
Sorry I noticed this and made fixes on my branch add this beneath 458 in cluster
n = pypsa.Network(snakemake.input.network)
n.set_investment_periods(
periods=snakemake.params.planning_horizons,
)
during simplify network the investment periods get dropped. I didn't look into the cause more, but it could be a bug in pypsa
Error is in Simplify Network
Checklist
pypsa-usa
environment. Update viaconda env update -f envs/environment.yaml
Issue exisits on what branch
Develop
The Issue
If I run a muti-horizon model, but for only a subset of the year (ie. Jan and Feb) the workflow fails (I do acknowledge this is kinda an odd thing to run, haha)
Steps To Reproduce
Put this in the config file
Expected Behavior
No response
Error Message
Anything else?
No response