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

Allow uneven splits with np.array_split #162

Merged
merged 1 commit into from
Oct 12, 2023
Merged

Allow uneven splits with np.array_split #162

merged 1 commit into from
Oct 12, 2023

Conversation

v1kko
Copy link
Contributor

@v1kko v1kko commented Oct 12, 2023

Sometimes nparts does not evenly divide an array, but for us this is okay, we can work with uneven arrays. Therefore we replace np.split with np.array_split

Sometimes nparts does not evenly divide an array, but for us this is okay,
we can work with uneven arrays. Therefore we replace np.split with np.array_split
@v1kko v1kko self-assigned this Oct 12, 2023
@v1kko v1kko linked an issue Oct 12, 2023 that may be closed by this pull request
@v1kko v1kko merged commit 0b7f096 into main Oct 12, 2023
3 checks passed
@stefsmeets stefsmeets deleted the n_parts branch October 18, 2023 08:00
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

Successfully merging this pull request may close these issues.

data division only works if len(trajectory)%n_parts==0
1 participant