Skip to content

Unsigned variable with valid range, min, max bug - #1612

Merged
lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:valid
Sep 27, 2026
Merged

lesserwhirls merged 1 commit into
Unidata:maint-5.xfrom
lesserwhirls:valid

Conversation

@lesserwhirls

@lesserwhirls lesserwhirls commented Sep 27, 2026 •

Copy link
Copy Markdown
Member

Description of Changes

PR #1603 handled the case where data are packed and the valid min, max, or range attributes were unpacked by unscaling those values. It did not try to unscale values when the variable was unsigned. However, we should only skip unscaling if the variable is unsigned because the attribute _Unsigned is set to true.

PR Checklist

  • Link to any issues that the PR addresses
  • Add labels
  • Open as a draft PR
    until ready for review
  • Make sure GitHub tests pass
  • Mark PR as "Ready for Review"

PR Unidata#1603 handled the case where data are packed and
the valid min, max, or range attributes were unpacked by unscaling those
values. It did not try to unscale values when the variable was unsigned.
However, we should only skip unscaling if the variable is unsigned
because the attribute _Unsigned is set to true.
@lesserwhirls lesserwhirls added this to the 5.11.0 milestone Sep 27, 2026
@lesserwhirls lesserwhirls added the bug Something isn't working label Sep 27, 2026
@lesserwhirls
lesserwhirls marked this pull request as ready for review September 27, 2026 20:39
@lesserwhirls
lesserwhirls merged commit 22998cd into Unidata:maint-5.x Sep 27, 2026
15 checks passed
@lesserwhirls
lesserwhirls deleted the valid branch September 27, 2026 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant