Skip to content

fix download function to order granules if needed#726

Merged
JessicaS11 merged 3 commits intodevelopmentfrom
auto-order
Dec 11, 2025
Merged

fix download function to order granules if needed#726
JessicaS11 merged 3 commits intodevelopmentfrom
auto-order

Conversation

@JessicaS11
Copy link
Copy Markdown
Member

@JessicaS11 JessicaS11 commented Dec 4, 2025

Several users (#666, #720) have reported issues with receiving errors when attempting to download data without first running order_granules(), a known issue documented in #688 and #699. This PR updates the download function to first order data if the user has not explicitly run the order function, returning to the intended behavior of icepyx in v1.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Dec 4, 2025

Binder 👈 Launch a binder notebook on this branch for commit e0e6b55

I will automatically update this comment whenever this PR is modified

Binder 👈 Launch a binder notebook on this branch for commit dd9dedb

Copy link
Copy Markdown
Contributor

@betolink betolink left a comment

Choose a reason for hiding this comment

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

Looks good to me!

# are no job IDs registered by the harmony API
if hasattr(self, "last_order") is None:
raise ValueError("No order has been placed yet.")
if not hasattr(self, "last_order"):
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

makes sense, I probably used the exception due my lack of familiarity with what most users were expecting here.

@codecov
Copy link
Copy Markdown

codecov bot commented Dec 4, 2025

Codecov Report

❌ Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 65.83%. Comparing base (12b222b) to head (dd9dedb).
⚠️ Report is 10 commits behind head on development.

Files with missing lines Patch % Lines
icepyx/core/query.py 0.00% 2 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##           development     #726   +/-   ##
============================================
  Coverage        65.83%   65.83%           
============================================
  Files               37       37           
  Lines             3050     3050           
  Branches           394      394           
============================================
  Hits              2008     2008           
  Misses             971      971           
  Partials            71       71           

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

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@JessicaS11
Copy link
Copy Markdown
Member Author

Thanks @betolink! The fact that for some reason the status isn't being reported properly aside, the unit tests are failing. It looks like, despite the version number being explicitly passed as "6", version 7 granules are being returned. Any idea why?

@JessicaS11 JessicaS11 merged commit d597d4b into development Dec 11, 2025
8 of 10 checks passed
@JessicaS11 JessicaS11 deleted the auto-order branch December 11, 2025 20:14
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.

Unintended AttributeError when attempting to download granules before an order

2 participants