Skip to content

Add year-based request chunking for YMD requests - #10

Closed
GianmarcoLattaruolo wants to merge 0 commit into
mainfrom
add-year-chunking-for-request
Closed

GianmarcoLattaruolo wants to merge 0 commit into
mainfrom
add-year-chunking-for-request

Conversation

@GianmarcoLattaruolo

Copy link
Copy Markdown
Member

Summary

  • Allow request_chunks: {year: N} on year-month-day requests, where N is any positive integer.
  • Add build_chunk_ymd_year_requests() and dispatch it from build_chunk_ymd_requests() when the time chunk key is year.
  • Cover the new path with unit tests and CDS ERA5 integration tests.

Test plan

  • Unit tests: tests/test_10_client_common.py (year chunks of size 1/2/3, leap years, remainder groups, year: 0 rejected)
  • Integration tests: tests/integration_test_10_cdsapi_era5_reanalysis.py (year: 1 vs unchunked; year: 1 and year: 2 selection)
  • CI on this PR (pre-commit, unit tests, type-check)

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.

1 participant