Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PowerAnalytics Entity-Metric Redesign #19

Closed

Conversation

GabrielKS
Copy link
Collaborator

Draft pull request representing the major PowerAnalytics redesign. Not yet ready for review. More information to follow!

This is the first commit in a major PowerAnalytics redesign.
Previously, the test simulations only contained one RenewableDispatch
component and did not dispatch any thermal generation. Now there is a
solar RenewableDispatch component, and nonzero thermal generation for
2/5 generators. The old PowerAnalytics test still work.
Additional changes in this commit:
 - Generalize compute_all to take Components
 - Make create_problem_results_dict return SortedDict
Rather than setting `agg_fn`/`reduce_fn` when calling `compute` or
`aggregate_time`, metrics now specify how they should be aggregated
across Entities and across time.
 - Add and test the ability to have `entity_agg_fn` and `time_agg_fn`
   use column element-wise "aggregation metadata" for things like
   weighted averages
 - Add options for how to aggregate the aggregation metadata itself
   (insufficiently tested)
 - Add option to specify what the result of `compute` looks like when
   there are no components (insufficiently tested)
 - Fix built-in curtailment fraction and integration calculations using
   weighted_average
I'm bumping up the version number from 0.5.2 to 0.6.0 to reflect the
first draft of the Entity-Metric redesign. I'm also adding myself as the
first author to reflect the fact that this redesigned version of the
package is meant to be the main one in use going forward.
Copy link

codecov bot commented Jan 18, 2024

Codecov Report

Attention: Patch coverage is 73.79679% with 98 lines in your changes missing coverage. Please review.

Project coverage is 80.17%. Comparing base (eca7764) to head (09ca5f4).

Current head 09ca5f4 differs from pull request most recent head 88b2d6e

Please upload reports for the commit 88b2d6e to get more accurate results.

Files Patch % Lines
src/builtin_metrics.jl 7.44% 87 Missing ⚠️
src/metrics.jl 94.27% 11 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             psy4      #19      +/-   ##
==========================================
- Coverage   88.46%   80.17%   -8.29%     
==========================================
  Files           3        8       +5     
  Lines         312      686     +374     
==========================================
+ Hits          276      550     +274     
- Misses         36      136     +100     
Flag Coverage Δ
unittests 80.17% <73.79%> (-8.29%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@GabrielKS GabrielKS changed the base branch from main to psy4 June 5, 2024 16:46
@jd-lara jd-lara deleted the branch NREL-Sienna:psy4 July 10, 2024 19:28
@jd-lara jd-lara closed this Jul 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants