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

Speed-up battery parsing #903

Merged
merged 2 commits into from
Jul 6, 2022

Conversation

josephmckinsey
Copy link

The PowerSystems table parsing has O(n^2) complexity for parsing batteries, where every row of the storage data frame is iterated or each battery. This pull request creates a map to the storage head and tail instead as a preprocessing step.

@codecov
Copy link

codecov bot commented Jul 5, 2022

Codecov Report

Merging #903 (54fabf6) into master (54fabf6) will not change coverage.
The diff coverage is n/a.

❗ Current head 54fabf6 differs from pull request most recent head cf5d97a. Consider uploading reports for the commit cf5d97a to get more accurate results

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #903   +/-   ##
=======================================
  Coverage   89.13%   89.13%           
=======================================
  Files         155      155           
  Lines        7466     7466           
=======================================
  Hits         6655     6655           
  Misses        811      811           
Flag Coverage Δ
unittests 89.13% <0.00%> (ø)

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

Copy link
Contributor

@daniel-thom daniel-thom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good

@jd-lara jd-lara self-assigned this Jul 6, 2022
@jd-lara jd-lara merged commit f6bc3c8 into NREL-Sienna:master Jul 6, 2022
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