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 interpolate_to_slice unit handling #3347

Merged
merged 2 commits into from
Jan 4, 2024
Merged

Conversation

dopplershift
Copy link
Member

Description Of Changes

The fixup in #3255 inadvertently added unit parsing to all code paths in interpolate_to_slice. This breaks any usages that passed in data with unknown units, such as dBZ with pyart. Since interpolate_to_slice has no need to do any unit handling, avoid this unless we're actually given a quantity.

Also update .gitignore for a new file being spit out by sphinx-gallery (or at least new outside the existing ignored directories).

Checklist

@dopplershift dopplershift added Type: Bug Something is not working like it should Area: Units Pertains to unit information labels Jan 3, 2024
@dopplershift dopplershift added this to the 1.6.1 milestone Jan 3, 2024
@dopplershift dopplershift requested a review from a team as a code owner January 3, 2024 23:21
@dopplershift dopplershift requested review from dcamron and removed request for a team January 3, 2024 23:21
The fixup in Unidata#3255 inadvertently added unit parsing to all code paths in
interpolate_to_slice. This breaks any usages that passed in data with
unknown units. Since interpolate_to_slice has no need to do any unit
handling, avoid this unless we're actually given a quantity.
@dcamron dcamron merged commit 059cc1a into Unidata:main Jan 4, 2024
34 checks passed
@dopplershift dopplershift deleted the fix-3341 branch January 4, 2024 21:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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.

UndefinedUnitError: 'dBZ' is not defined in the unit registry
2 participants