Skip to content

statistics on NetworkCollection not working reliably with different snapshot_weightings #1605

@euronion

Description

@euronion

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 master branch of PyPSA.

Issue Description

Two networks loaded into the NetworkCollection with different snapshot_weightings:

Image

Calling nc.statistics() seems to work fine:

Image

However calling sub-statistics does not seem to reliably work. Calling nc.statistics.supply() only returns the supply-statistics for the hourly model:

Image

Calling nc.statistics()["Supply"] however seems to work:

Image

Reproducible Example

-

Expected Behavior

Installed Versions

Details Replace this line.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions