opendatacube / datacube-core

Open Data Cube analyses continental scale Earth Observation data through time
http://www.opendatacube.org
Apache License 2.0
493 stars 175 forks source link

Refine _time_to_search_dims logic #1561

Closed Ariana-B closed 3 months ago

Ariana-B commented 3 months ago

Reason for this pull request

Passing time as an int/float to dc.load was causing the query to return an unexpected date range due to the value being interpreted as seconds since epoch. Int/float is not documented as an accepted type for time in the first place and could be ambiguous.

Proposed changes


📚 Documentation preview 📚: https://datacube-core--1561.org.readthedocs.build/en/1561/

codecov[bot] commented 3 months ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 91.78%. Comparing base (b6cebf5) to head (4bf8cb8).

:exclamation: Current head 4bf8cb8 differs from pull request most recent head 78948f5. Consider uploading reports for the commit 78948f5 to get more accurate results

Additional details and impacted files ```diff @@ Coverage Diff @@ ## develop #1561 +/- ## ======================================== Coverage 91.78% 91.78% ======================================== Files 132 132 Lines 14641 14621 -20 ======================================== - Hits 13438 13420 -18 + Misses 1203 1201 -2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.