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

dropdims should work #184

Open
rafaqz opened this issue Aug 15, 2024 · 0 comments
Open

dropdims should work #184

rafaqz opened this issue Aug 15, 2024 · 0 comments

Comments

@rafaqz
Copy link
Collaborator

rafaqz commented Aug 15, 2024

Currently calling dropdims(A, n) on a disk array gives the error:

"For DiskArrays, reshape is restricted to adding singleton dimensions"

We should define dropdims to just call view instead of reshape - this is what Rasters.jl does manually. It would be nice if dropdims just worked.

@rafaqz rafaqz changed the title dropdims should be able to remove trailing 1s dropdims should work Aug 15, 2024
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

1 participant