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

Handle duplicate timeseries index #3243

Merged
merged 5 commits into from
Dec 6, 2024
Merged

Handle duplicate timeseries index #3243

merged 5 commits into from
Dec 6, 2024

Conversation

Lisrte
Copy link
Contributor

@Lisrte Lisrte commented Dec 4, 2024

Please check if the PR fulfills these requirements

  • The commit message follows our guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)

Does this PR already have an issue describing the problem?

No

What kind of change does this PR introduce?

Bug fix

What is the current behavior?

TimeSeries can be created with duplicate time index value.

What is the new behavior (if this is a feature change)?
Skipped row when duplicate time index is found during CSV timeseries parsing
Throws exception in IrregularTimeSeriesIndex if the times array contains duplicate or is unordered

Does this PR introduce a breaking change or deprecate an API?

  • Yes
  • No

Other information:

Linked to a practical case in powsybl-dynawo PR 413

Throws exception in IrregularTimeSeriesIndex if the times array contains duplicate or is unordered

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@Lisrte Lisrte marked this pull request as ready for review December 4, 2024 15:06
@Lisrte Lisrte requested a review from flo-dup December 4, 2024 15:07
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
Signed-off-by: lisrte <laurent.issertial@rte-france.com>
@flo-dup flo-dup merged commit be489a8 into main Dec 6, 2024
8 checks passed
@flo-dup flo-dup deleted the duplicate_timeseries_index branch December 6, 2024 17:08
olperr1 pushed a commit that referenced this pull request Jan 22, 2025
* Skipped duplicate time index in CSV timeseries parser
* Throws exception in IrregularTimeSeriesIndex if the times array contains duplicate or is unordered
* Replace String join with text block in unit tests

Signed-off-by: lisrte <laurent.issertial@rte-france.com>
(cherry picked from commit be489a8)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants