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

⭐ new function for ragged array to slice? #538

Open
selipot opened this issue Jan 29, 2025 · 0 comments
Open

⭐ new function for ragged array to slice? #538

selipot opened this issue Jan 29, 2025 · 0 comments
Assignees
Labels
enhancement New feature or request

Comments

@selipot
Copy link
Member

selipot commented Jan 29, 2025

What about a function to replace the slice calculation?
Instead of

traj_idx = ...
sli = traj_idx[j]:traj_idx[j+1]
lon[sli]

What about something like:

sli = ragged_slice(lon,rowsize,1)
lon[sli]

@selipot selipot added the enhancement New feature or request label Jan 29, 2025
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
Status: No status
Development

No branches or pull requests

2 participants