-
Notifications
You must be signed in to change notification settings - Fork 17
Fix FixedRectangularBinning for StateSpaceSet containing vectors
#435
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
Fix FixedRectangularBinning for StateSpaceSet containing vectors
#435
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
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
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.
|
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 ComplexityMeasures.jl/test/encodings/encodings/rectangular_bin_encoding.jl Lines 15 to 41 in e835a07
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 |
|
okay, thanks, not sure how we missed this then... Good luck with your PhD! |
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.