-
Notifications
You must be signed in to change notification settings - Fork 357
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
Remove padding of extent if not specified when creating free positions #2459
Conversation
Center is rounded to the first decimal. Single-node layers require extent to be explicitly specified.
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.
@hakonsbm Thanks for fixing this! I have added some comments, mostly minor points. Since this bug fix will change behavior of existing scripts, please add some explicit information about this in the release notes, although I am right now not certain if for v3.4 or v3.5.
Removed irrelevant test of center value, changed to `assertAlmostEqual`, and added test of 3 dimension case.
Co-authored-by: Hans Ekkehard Plesser <hans.ekkehard.plesser@nmbu.no>
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.
LGTM, thanks!
Because assertAlmostEqual() doesn't work with tuples of floats.
Fixes #2359 by removing padding of extent if no extent is specified when creating the positions. Extent is instead rounded up and adjusted to a rounded centre. If only a single node is created, extent must be specified.