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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Increase maturity search buffer to 500ms #1458

Merged
merged 1 commit into from Jun 21, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions datacube/index/abstract.py
Expand Up @@ -921,8 +921,8 @@ def find_less_mature(self, ds: Dataset) -> Iterable[Dataset]:
"""
less_mature = []
# 'expand' the date range by a millisecond to give a bit more leniency in datetime comparison
expanded_time_range = Range(ds.metadata.time.begin - timedelta(milliseconds=1),
ds.metadata.time.end + timedelta(milliseconds=1))
expanded_time_range = Range(ds.metadata.time.begin - timedelta(milliseconds=500),
ds.metadata.time.end + timedelta(milliseconds=500))
dupes = self.search(product=ds.product.name,
region_code=ds.metadata.region_code,
time=expanded_time_range)
Expand Down
2 changes: 2 additions & 0 deletions docs/about/whats_new.rst
Expand Up @@ -11,6 +11,8 @@ v1.8.next
- Second attempt to address unexpected handling of image aspect ratios in rasterio and
GDAL. (:pull:`1457`)
- Fix broken pypi publishing Github action (:pull:`1454`)
- Documentation improvements (:pull:`1455`)
- Increase maturity leniency to +-500ms (:pull:`1458`)


v1.8.13 (6th June 2023)
Expand Down