Skip to content

Large solution files take a long time to plot total generation, and other plots #68

@MartySchwarz

Description

@MartySchwarz

Most of the time is taken up by the get_formatted_data() function, because the data is natively stored at the unit level. However, most plots only care about data aggregated up to a certain geographic region. It would be much quicker to do that aggregation once in the formatter step, rather than each time you plot.

Proposed solution:
Save a seperate dataset within each *_{solution}_formatted.h5 file, in which each property (e.g. generator_Generation) is aggregated to each level as defined by the columns in the region_mapping file.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions