Skip to content

Conversation

@llucax
Copy link
Contributor

@llucax llucax commented Jun 27, 2024

This new class is based on the SDK Bounds class. It is renamed to Interval partly because this is a more generic repo and this is a more generic name, but also because we will add Bounds class in the future to represent multiple (inclusion) intervals, which is how the new microgrid API handle bounds.

Fixes #11, #12, #13, #15.

@llucax llucax requested a review from a team as a code owner June 27, 2024 12:26
@llucax llucax requested a review from Marenz June 27, 2024 12:26
@github-actions github-actions bot added part:tests Affects the unit, integration and performance (benchmarks) tests part:collections Affects the collections module labels Jun 27, 2024
llucax added 4 commits June 27, 2024 14:30
To check if a value is within the bounds of a `Bounds` instance, we only
need to be able to compare with less-than (`__lt__`). This impose less
restrictions on the inner type of `Bounds`, and matches what other
built-in functions work in Python (like `sorted`).

Signed-off-by: Leandro Lucarella <[email protected]>
`Bounds` will be used to represent a set of `Interval`s in the future.

Signed-off-by: Leandro Lucarella <[email protected]>
The start can't be bigger than the end and we raise a `ValueError` in
that case.

Signed-off-by: Leandro Lucarella <[email protected]>
@llucax llucax added the cmd:skip-release-notes It is not necessary to update release notes for this PR label Jun 27, 2024
@llucax
Copy link
Contributor Author

llucax commented Jun 27, 2024

Skipping release notes because I will write a summary for the release, as it will be the first release.

@llucax llucax requested a review from shsms June 27, 2024 12:32
@llucax llucax enabled auto-merge June 27, 2024 12:32
@llucax llucax self-assigned this Jun 27, 2024
@llucax llucax added this to the v1.0.0 milestone Jun 27, 2024
@llucax llucax linked an issue Jun 27, 2024 that may be closed by this pull request
2 tasks
@llucax llucax added this pull request to the merge queue Jun 27, 2024
Merged via the queue into frequenz-floss:v1.x.x with commit 26e69e2 Jun 27, 2024
@llucax llucax deleted the collections branch June 27, 2024 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cmd:skip-release-notes It is not necessary to update release notes for this PR part:collections Affects the collections module part:tests Affects the unit, integration and performance (benchmarks) tests

Projects

None yet

2 participants