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

xrft.pad raises a ValueError if called with pad_width=0 #202

Closed
cgahr opened this issue Jul 5, 2023 · 0 comments
Closed

xrft.pad raises a ValueError if called with pad_width=0 #202

cgahr opened this issue Jul 5, 2023 · 0 comments

Comments

@cgahr
Copy link

cgahr commented Jul 5, 2023

If I call

da.sizes  # {'x': 32}
xrft.pad(da, {'x': 0})

the following value error is called:

ValueError: could not broadcast input array from shape (0,) into shape (32,)

Instead, I expect the original array to be returned, as it is for xr.pad:

da.pad({'x': 0})  # works
cgahr pushed a commit to cgahr/xrft that referenced this issue Jul 2, 2024
@roxyboy roxyboy closed this as completed in 3542b44 Jul 3, 2024
roxyboy added a commit that referenced this issue Jul 3, 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