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

tweak list_products to consider load_hints #1535

Merged
merged 3 commits into from Jan 17, 2024

Conversation

Ariana-B
Copy link
Contributor

@Ariana-B Ariana-B commented Jan 17, 2024

Reason for this pull request

list_products would always get crs and resolution from grid_spec even if default_crs or default_resolution is not None or if crs and resolution were defined via load_hints.

Proposed changes


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

@Ariana-B Ariana-B changed the title tweak list_products to check for crs and resolution in load_hints tweak list_products to consider load_hints Jan 17, 2024
Copy link

codecov bot commented Jan 17, 2024

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (47f0aca) 91.79% compared to head (f547d7b) 91.77%.

Files Patch % Lines
datacube/api/core.py 57.14% 3 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff             @@
##           develop    #1535      +/-   ##
===========================================
- Coverage    91.79%   91.77%   -0.02%     
===========================================
  Files          132      132              
  Lines        14624    14631       +7     
===========================================
+ Hits         13424    13428       +4     
- Misses        1200     1203       +3     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link
Contributor

@SpacemanPaul SpacemanPaul left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Awesome, thanks! :)

@SpacemanPaul SpacemanPaul merged commit fe0dc37 into develop Jan 17, 2024
29 checks passed
@SpacemanPaul SpacemanPaul deleted the list_products_load_hints branch January 17, 2024 05:53
SpacemanPaul pushed a commit that referenced this pull request Jan 17, 2024
* tweak list_products to check for crs and resolution in load_hints

* update whats_new

* get osgeo/gdal from ghcr

---------

Authored-by: Ariana Barzinpour <ariana.barzinpour@ga.gov.au>
SpacemanPaul added a commit that referenced this pull request Jan 18, 2024
* New MDT get_with_fields() method.

* Product resource cleanup (including methods moving in and out) see EP13.

* Get tests passing as they are.

* Porting tests hopefully keeping coverage.

* More test porting and migrating internal usages of deprecated/moved methods.

* What's new

* What's new - update PR number

* Minor change to whats_new - mostly to kick off checks again.

* Lintage.

* tweak list_products to consider load_hints (#1535)

* tweak list_products to check for crs and resolution in load_hints

* update whats_new

* get osgeo/gdal from ghcr

---------

Authored-by: Ariana Barzinpour <ariana.barzinpour@ga.gov.au>

* Fix query API test fixture.

* Fix virtual product test fixture.

* Nice cleanup - thanks @Ariana-B

---------

Co-authored-by: Ariana-B <40238244+ariana-b@users.noreply.github.com>
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.

list_products ignores information in load hints
2 participants