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

Crash in voxelize_hits paolina function when only 1 hit is present #328

Closed
paolafer opened this issue Sep 6, 2017 · 2 comments
Closed

Comments

@paolafer
Copy link
Collaborator

paolafer commented Sep 6, 2017

I've realized that the function voxelize_hits in paolina_functions gives an error when the collection of hits is composed of just 1 item. This happens because the calculated boundaries are the same and the number of bins is zero. However, the correct behaviour should be that one voxel be built, so the number of bins be 1.

@jacg
Copy link
Collaborator

jacg commented Sep 6, 2017

Please add a test to paolina_functions_test.py detailing your expectations. Start a PR with that test in it.
Once that's in place, someone (possibly me, if I have the time) can make it pass.

@jacg
Copy link
Collaborator

jacg commented Sep 6, 2017

This is addressed in #329.

@jacg jacg closed this as completed in aa3ca94 Sep 8, 2017
jacg pushed a commit that referenced this issue Sep 8, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit that referenced this issue Sep 9, 2017
jacg added a commit that referenced this issue Sep 9, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit that referenced this issue Sep 9, 2017
jacg added a commit that referenced this issue Sep 9, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit that referenced this issue Sep 9, 2017
jacg added a commit that referenced this issue Sep 9, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit that referenced this issue Sep 10, 2017
jacg added a commit that referenced this issue Sep 10, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit that referenced this issue Sep 15, 2017
jacg added a commit that referenced this issue Sep 15, 2017
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Apr 24, 2018
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Apr 24, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
jacg added a commit to jacg/IC that referenced this issue Sep 14, 2018
jacg added a commit to jacg/IC that referenced this issue Sep 14, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit that referenced this issue Oct 16, 2018
jmbenlloch pushed a commit that referenced this issue Oct 16, 2018
Closes #328

Previously, the code was crashing when a hit collection contained only
one item.
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
jmbenlloch pushed a commit to jmbenlloch/IC-1 that referenced this issue Oct 16, 2018
Closes next-exp#328

Previously, the code was crashing when a hit collection contained only
one item.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants