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

chore: make sure no mismatch between timestemps and time series values #251

Merged
merged 4 commits into from
Nov 1, 2023

Conversation

frodehk
Copy link
Contributor

@frodehk frodehk commented Oct 24, 2023

Why is this pull request needed?

When there is a mismatch between number timesteps and number of time series values, this may be silently ignored. The danger is that a single value or few values are extrapolated, or mapped incorrectly, and therefore getting wrong results.

We should make sure that we always have a 1:1 relationshop between timesteps and values when working with timeseries to make sure that this cannot be a problem.

What does this pull request change?

  • Add a regular validator in TimeSeries to ensure there is no mismatch between timesteps and values.
  • Add test.

Issues related to this change:

Copy link
Collaborator

@TeeeJay TeeeJay left a comment

Choose a reason for hiding this comment

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

see if error(s) can be fixed where errors occur?

When i asked for snapshot test, I just wanted snapshots to be updated. I thought this could cause changes in snapshots, but you are right, it shouldnt.

@frodehk frodehk force-pushed the ECALC-313-ensure-consistent-timesteps-values branch from 22eca81 to 26d60e8 Compare October 27, 2023 09:21
@frodehk frodehk force-pushed the ECALC-313-ensure-consistent-timesteps-values branch from 05eb98c to 48fc124 Compare November 1, 2023 14:27
@frodehk frodehk merged commit ae6ade9 into main Nov 1, 2023
6 checks passed
@frodehk frodehk deleted the ECALC-313-ensure-consistent-timesteps-values branch November 1, 2023 14:33
equinor-schen pushed a commit that referenced this pull request Nov 22, 2023
#251)

* chore: make sure no mismatch between timestemps and time series values
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