Skip to content
Discussion options

You must be logged in to vote

@wiso - Thanks for reporting it! Conceptually, this is something Awkward could (and arguably should) handle at the slicing layer:

When applying a jagged mask to a RegularArray, the result could be “promoted” to a list-like structure instead of flattened.

That would make values[values != 0] always behave consistently.

So yes — you’re absolutely right it is awkward:

  • users should not need to care about RegularArray.
  • The slicing interface is the right abstraction layer to hide it.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ianna
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants