Skip to content

Conversation

@dopplershift
Copy link
Member

Description Of Changes

When given a DataArray and a numpy array, neither with units, a Quantity would be passed into the core calculation, triggering an exception on apply_along_axis. Instead, handle trying to convert and drop units on a "dimensionless" Quantity, since that's what we get for a DataArray with no units.

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Units Pertains to unit information Area: Gridding Pertains to calculating values on a regular grid labels Jul 5, 2023
@dopplershift dopplershift added this to the July 2023 milestone Jul 5, 2023
@dopplershift dopplershift requested a review from a team as a code owner July 5, 2023 23:06
@dopplershift dopplershift requested review from dcamron and removed request for a team July 5, 2023 23:06
When given a DataArray and a numpy array, neither with units, a Quantity
would be passed into the core calculation, triggering an exception on
`apply_along_axis`. Instead, handle trying to convert and drop units on
a "dimensionless" Quantity, since that's what we get for a DataArray
with no units.
@dcamron dcamron merged commit c5aed56 into Unidata:main Jul 6, 2023
@dopplershift dopplershift deleted the fix-1889 branch July 6, 2023 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area: Gridding Pertains to calculating values on a regular grid Area: Units Pertains to unit information Type: Bug Something is not working like it should

Projects

None yet

Development

Successfully merging this pull request may close these issues.

interpolate.log_interpolate_1d fails with Xarray input of more than 3D (Numpy succeeds)

2 participants