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 subsetting axis with single value #1383

Merged
merged 3 commits into from
Aug 29, 2024

Conversation

tdrwenski
Copy link
Member

@tdrwenski tdrwenski commented Aug 28, 2024

Description of Changes

Fixes Unidata/tds#532.

  • isAscending should return true for any positive resolution, including 0 (which is the resolution of an axis with a single value). This condition is used to determine whether min/max indexes should get flipped when a subset is requested, which currently results in an error for the case of an axis with a single value.
  • Add a test and a small refactor of existing test class (easiest to view diff without whitespace changes).

@tdrwenski tdrwenski marked this pull request as ready for review August 28, 2024 17:52
@oxelson oxelson merged commit b81a9c0 into Unidata:maint-5.x Aug 29, 2024
8 checks passed
@tdrwenski tdrwenski deleted the fix-coverage-time-subset branch August 30, 2024 19:19
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

Successfully merging this pull request may close these issues.

Error if setting a time_range for a query on a dataset with a single time slot
2 participants