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

Addition/removal of layers in a nested duck array #5

Open
jthielen opened this issue Sep 24, 2021 · 1 comment
Open

Addition/removal of layers in a nested duck array #5

jthielen opened this issue Sep 24, 2021 · 1 comment

Comments

@jthielen
Copy link

In many use cases, we can have "multiply nested" duck arrays rather than just two interacting duck array types. This creates a couple issues:

Note: this issue is mostly relevant to array types higher on DAG, as they are the ones handling the respective interactions.

Specific Goals

  • Improve the situation of altering nested array structures over the manual deconstruction/reconstruction that is required

Current State

Xarray has limited support (downcasting contained data to ndarray with as_numpy), but other libraries have none or next to none. pydata/xarray#3245 (which may have been mistakenly/prematurely closed) as many different ideas on how to handle other minimally nested cases. Otherwise, it is entirely up to the user to break apart and reconstruct the nested array structures.

Suggested Paths Forward

This is admittedly a poorly described issue, so perhaps a good idea would be to collect use cases/user stories in which we need to be able to cast wrapped types between each other in multiply nested arrays, and then see if any ideas for common interfaces emerge.

@SimonHeybrock
Copy link

See #6 (comment) for a suggestion addressing the removal of layers.

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