Skip to content
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

Merged
merged 11 commits into from
Sep 5, 2022

Conversation

hakonsbm
Copy link
Contributor

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.

@hakonsbm hakonsbm added T: Bug Wrong statements in the code or documentation S: High Should be handled next I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Aug 29, 2022
@hakonsbm hakonsbm added this to PRs in progress in Kernel via automation Aug 29, 2022
@heplesser heplesser added I: Behavior changes Introduces changes that produce different results for some users and removed I: No breaking change Previously written code will work as before, no one should note anything changing (aside the fix) labels Aug 29, 2022
Copy link
Contributor

@heplesser heplesser left a 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.

nestkernel/free_layer.h Outdated Show resolved Hide resolved
testsuite/pytests/test_spatial/test_connect_sliced.py Outdated Show resolved Hide resolved
testsuite/pytests/test_spatial/test_layerNodeCollection.py Outdated Show resolved Hide resolved
testsuite/pytests/test_spatial/test_layerNodeCollection.py Outdated Show resolved Hide resolved
Kernel automation moved this from PRs in progress to PRs pending approval Aug 29, 2022
hakonsbm and others added 5 commits August 30, 2022 10:00
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>
Copy link
Member

@nicolossus nicolossus left a 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.
@heplesser heplesser merged commit d07ba2d into nest:master Sep 5, 2022
Kernel automation moved this from PRs pending approval to Done (PRs and issues) Sep 5, 2022
@hakonsbm hakonsbm deleted the correct_spatial branch September 5, 2022 11:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
I: Behavior changes Introduces changes that produce different results for some users S: High Should be handled next T: Bug Wrong statements in the code or documentation
Projects
Kernel
  
Done
Development

Successfully merging this pull request may close these issues.

Connecting spatial nodes with mask and edge_wrap=True yields wrong connections
3 participants