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

Fix #55: unconditional np.squeeze() can lead to data loss #59

Merged
merged 2 commits into from
Jul 23, 2024

Conversation

valp124
Copy link
Contributor

@valp124 valp124 commented Jul 22, 2024

The fix makes an assumption that "singular" axes that need to be squeezed are either at the beginning or the end of the array shape. All the unit tests pass. I suppose it is conceivable that one could have an array with meaningful data in a singular axis at the front or the end. At any rate, this works probably for most conceivable cases.

@skjerns skjerns merged commit c1b7baf into skjerns:master Jul 23, 2024
14 checks passed
@skjerns
Copy link
Owner

skjerns commented Jul 23, 2024

looks good! thank you very much for this addition :)

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.

2 participants