-
Notifications
You must be signed in to change notification settings - Fork 283
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
[bugifx] Make sure region edge units are in code_length. #2399
Conversation
This looks right to me, but any chance you can say more about which situations it might happen? |
Sure, I encountered this making lightray data sets with Trident. The underlying data format is I'm happy to share the lightray file if you want to play around, but it may be more trouble than it's worth to add a test that uses it. |
This error is odd -- it looks like a transient AppVeyor issue, maybe? It's nothing related to this PR, so I think we should accept this and address the AppVeyor issue (which seems to be showing up elsewhere) in another PR. |
I'll just add this for anyone interested. The problem can be demonstrated by loading up a particle dataset and doing the following:
Not that I'm condoning that operation, but it demonstrates what happens when the default domain units are not |
@brittonsmith I am not sure I understand how this is possible -- aren't Also, would this problem be solved if all of our "index"-related arrays were immutable? |
You can still do
and it will stick. The The primary issue of this bugfix is that there is a an assumption within the selection routines that domain bounds are always in |
Any objections to merging this? |
Nope.
…On Thu, Jan 23, 2020 at 10:14 AM Britton Smith ***@***.***> wrote:
Any objections to merging this?
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#2399?email_source=notifications&email_token=AAAVXOZFR6HKBEAKMGA7RGDQ7G643A5CNFSM4J3ZCON2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEJX4ZNI#issuecomment-577752245>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAVXO453QDGM7POLLD6DJTQ7G643ANCNFSM4J3ZCONQ>
.
|
After PR #2391 was merged, I encountered a few cases of
all_data
selection returning empty arrays. It seems in some cases the region edges are not in code units.