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

Add a split method? #3326

Open
nvaytet opened this issue Nov 9, 2023 · 1 comment
Open

Add a split method? #3326

nvaytet opened this issue Nov 9, 2023 · 1 comment
Labels
enhancement New feature or request

Comments

@nvaytet
Copy link
Member

nvaytet commented Nov 9, 2023

With labeled dimensions, we can do Numpy's split, hsplit, vsplit, and dsplit with a single function.

What should it return? Numpy returns a tuple of arrays.
The function would be similar to sc.collapse (but collapse always reduces the output to 1D arrays), which returns a dict.
A dict is useful for sending to the plotting functions.

@nvaytet nvaytet added the enhancement New feature or request label Nov 9, 2023
@nvaytet nvaytet changed the title Add a split method Add a split method? Nov 9, 2023
@SimonHeybrock
Copy link
Member

See also #2873.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants