Skip to content

Refactor ArgoIndex query parsing and update docs#584

Draft
Jade2097 wants to merge 5 commits intomasterfrom
argoindex-query-docs
Draft

Refactor ArgoIndex query parsing and update docs#584
Jade2097 wants to merge 5 commits intomasterfrom
argoindex-query-docs

Conversation

@Jade2097
Copy link
Collaborator

Summary

This PR factors query argument parsing for lon/lat/date and updates documentation to reflect the new bound keywords and single‑date behavior.

Changes

  • Add a shared helper that converts explicit lower/upper bounds, [min, max], or legacy BOX into a full index box
  • Use helper in lon, lat and date checkers
  • Update lon/lat and date docstrings with explicit bound examples and single‑date usage

@gmaze gmaze marked this pull request as draft February 12, 2026 18:07
@gmaze gmaze moved this from Queued to In Progress in Argopy Management Dashboard Feb 13, 2026
Introduce parse_indexbox() utility function to centralize argument parsing
for lon/lat/date query methods.

Changes:
- Add parse_indexbox() in argopy/utils/checkers.py
- Refactor lon/lat/date checkers in pandas search engine
- Support ge/le kwargs, ranges, single values, and date strings
- Raise TypeError for numeric date arguments with helpful message
- Reduce code duplication
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: In Progress

Development

Successfully merging this pull request may close these issues.

1 participant