Version Checks (indicate both or one)
Issue Description
Two networks loaded into the NetworkCollection with different snapshot_weightings:
Calling nc.statistics() seems to work fine:
However calling sub-statistics does not seem to reliably work. Calling nc.statistics.supply() only returns the supply-statistics for the hourly model:
Calling nc.statistics()["Supply"] however seems to work:
Reproducible Example
Expected Behavior
Installed Versions
Details
Replace this line.
Version Checks (indicate both or one)
I have confirmed this bug exists on the lastest release of PyPSA.
I have confirmed this bug exists on the current
masterbranch of PyPSA.Issue Description
Two networks loaded into the
NetworkCollectionwith differentsnapshot_weightings:Calling
nc.statistics()seems to work fine:However calling sub-statistics does not seem to reliably work. Calling
nc.statistics.supply()only returns the supply-statistics for thehourlymodel:Calling
nc.statistics()["Supply"]however seems to work:Reproducible Example
-Expected Behavior
Installed Versions
Details
Replace this line.