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

Fix reading of 2d time series data in test code #328

Merged
merged 1 commit into from
Feb 15, 2024

Conversation

daniel-thom
Copy link
Contributor

This function, which is only used in tests, was not handling time series data with multiple dimensions.

This is a very old bug. It was triggered by the addition of supplemental attributes and outages to PowerSystem.jl. Tests for those features started using a system with 2-dimensional time series data. That code worked when in-memory time series data used, which happens in PowerSystemCaseBuilder when you set build_system(force_build=true).

This function, which is only used in tests, was not handling time series
data with multiple dimensions.
Copy link

codecov bot commented Feb 15, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (11d6415) 79.64% compared to head (5d4910a) 79.64%.

Additional details and impacted files

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #328   +/-   ##
=======================================
  Coverage   79.64%   79.64%           
=======================================
  Files          53       53           
  Lines        4240     4240           
=======================================
  Hits         3377     3377           
  Misses        863      863           
Flag Coverage Δ
unittests 79.64% <100.00%> (ø)

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

Files Coverage Δ
src/hdf5_time_series_storage.jl 91.31% <100.00%> (ø)

Copy link
Member

@jd-lara jd-lara left a comment

Choose a reason for hiding this comment

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

wow... this was indeed an old bug

@jd-lara jd-lara self-assigned this Feb 15, 2024
@jd-lara jd-lara merged commit f74a857 into NREL-Sienna:main Feb 15, 2024
7 of 9 checks passed
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.

2 participants