Skip to content

Conversation

@SimonBuechner
Copy link

Which issue(s) are closed by this pull request?

Closes #111

Changes proposed in this pull request:

  • NaN at the end of EDC are clipped to last valid value
  • According test added.

@SimonBuechner SimonBuechner self-assigned this Jan 5, 2026
@SimonBuechner SimonBuechner added the bug Something isn't working label Jan 5, 2026
@SimonBuechner SimonBuechner moved this from Backlog to Require review in Weekly Planning Jan 5, 2026
@SimonBuechner SimonBuechner added this to the v1.0.0 milestone Jan 5, 2026
@SimonBuechner SimonBuechner linked an issue Jan 5, 2026 that may be closed by this pull request
1 task
Copy link
Member

@f-brinkmann f-brinkmann left a comment

Choose a reason for hiding this comment

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

Thanks for the effort. The code and behavior seems fine to me. I wonder, if and how we should describe this in the docs for already existing parameters. How about adding something like this to the description of the time limit in clarity (and other pull requests):
'If the value exceeds the duration of the EDC or coincides with a NaN-value, it is clipped to the last valid sample of the EDC.'

@github-project-automation github-project-automation bot moved this from Require review to Reviewer Approved in Weekly Planning Jan 16, 2026
@f-brinkmann f-brinkmann moved this from Reviewer Approved to Require review in Weekly Planning Jan 16, 2026
@mberz mberz moved this from Require review to On hold in Weekly Planning Jan 21, 2026
@mberz
Copy link
Member

mberz commented Jan 21, 2026

Please see the comment in #111. I'm putting this PR on hold with the tendency to closing.
Let's discuss alternative solutions in #111

@mberz mberz removed the bug Something isn't working label Jan 22, 2026
@mberz mberz closed this Jan 22, 2026
@github-project-automation github-project-automation bot moved this from On hold to Done in Weekly Planning Jan 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[BUG] _energy_ratio doesn't handle NaN's in the EDC correctly

4 participants