Fix FixedRectangularBinning for StateSpaceSet containing vectors#435
Merged
Datseris merged 3 commits intoJuliaDynamics:mainfrom May 26, 2025
ljahn:ljahn-fix-FixedRectangularBinning
Merged
Fix FixedRectangularBinning for StateSpaceSet containing vectors#435Datseris merged 3 commits intoJuliaDynamics:mainfrom ljahn:ljahn-fix-FixedRectangularBinning
FixedRectangularBinning for StateSpaceSet containing vectors#435Datseris merged 3 commits intoJuliaDynamics:mainfrom
ljahn:ljahn-fix-FixedRectangularBinning
Conversation
If a `StateSpaceSet` containing vectors is used to construct a `FixedRectangularBinning`, the element type `T` is determined as the vector type, not the underlying element type. Subsequent construction of a helper array for dealing with bounds therefore fails. Fixed by determining the type of the underlying elements.
Datseris
reviewed
May 26, 2025
Member
Datseris
left a comment
There was a problem hiding this comment.
Thanks @ljahn ! Hope you are doing well!
This is a repercusion of StateSpaceSets.jl v2.4, so we are still fixing the bugs... The fact that we missed this is because there are no tests for it. Can you 1) add a trivial test for this and 2) bump patch version in Project.toml? Thanks.
Contributor
Author
|
Hi @Datseris, I'm fine, still in Göttingen, working on my PhD. I had a look at the tests and figured the case should be covered by In line FixedRectangularBinnings of a 2D StateSpaceSet get constructed.So I ran the tests to check and they indeed fail as expected for me. For Binnings 3,4 and 7, the ones affected by this bug, tests fail. Details |
Datseris
approved these changes
May 26, 2025
Member
|
okay, thanks, not sure how we missed this then... Good luck with your PhD! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
If a
StateSpaceSetcontaining vectors is used to construct aFixedRectangularBinning, the element typeTis determined as the vector type, not the underlying element type. Subsequent construction of a helper array for dealing with bounds therefore fails.Fixed by determining the type of the underlying elements.