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

fill_none followed by ravel reorders arrays #3180

Open
rpsimeon34 opened this issue Jul 12, 2024 · 0 comments
Open

fill_none followed by ravel reorders arrays #3180

rpsimeon34 opened this issue Jul 12, 2024 · 0 comments
Assignees
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged

Comments

@rpsimeon34
Copy link

Version of Awkward Array

2.6.6

Description and code to reproduce

When I apply fill_none and then ravel (or flatten), the resulting array has been reordered. In the following snippet, I expect the result to be ak.Array([False,False,True]), but instead it is ak.Array([False,True,False]).

import awkward as ak

x = ak.Array([None,[False],[True]])
ak.ravel(ak.fill_none(x,False,axis=0))

returns

[False,
 True,
 False]
--------------
type: 3 * bool

Apologies if this is expected, and is instead my own misunderstanding. Thank you!

@rpsimeon34 rpsimeon34 added the bug (unverified) The problem described would be a bug, but needs to be triaged label Jul 12, 2024
@agoose77 agoose77 self-assigned this Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug (unverified) The problem described would be a bug, but needs to be triaged
Projects
None yet
Development

No branches or pull requests

2 participants