Skip to content

Fix dev setup issues with pooch data fetch and cache handling#1656

Merged
LOCEANlloydizard merged 2 commits intoOSOceanAcoustics:mainfrom
LOCEANlloydizard:update-dev-setup
Apr 18, 2026
Merged

Fix dev setup issues with pooch data fetch and cache handling#1656
LOCEANlloydizard merged 2 commits intoOSOceanAcoustics:mainfrom
LOCEANlloydizard:update-dev-setup

Conversation

@LOCEANlloydizard
Copy link
Copy Markdown
Collaborator

@LOCEANlloydizard LOCEANlloydizard commented Apr 18, 2026

ok had a look & these small fixes should address the issues encountered in #1652! I was able to install echopype from scratch and run the test suite locally, so should be good!

  • Add pooch to dev requirements
  • Ensure pooch cache directory is created if missing
  • Improve data fetch (retry + timeout)
  • Document USE_POOCH setup for local environments

@leewujung did not migrate dependencies to pyproject.toml as it would require broader refactoring, but this is trackded as an issue anyway in #1421
Cheers!

Fix #1652

- Add pooch to dev requirements
- Ensure pooch cache directory is created if missing
- Improve data fetch (retry + timeout)
- Document USE_POOCH setup for local environments
@codecov-commenter
Copy link
Copy Markdown

codecov-commenter commented Apr 18, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 85.75%. Comparing base (6cf6cee) to head (4451b4a).
⚠️ Report is 33 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1656      +/-   ##
==========================================
+ Coverage   85.58%   85.75%   +0.17%     
==========================================
  Files          79       78       -1     
  Lines        6998     7040      +42     
==========================================
+ Hits         5989     6037      +48     
+ Misses       1009     1003       -6     
Flag Coverage Δ
integration 80.98% <ø> (+0.34%) ⬆️
unit 60.29% <ø> (-0.12%) ⬇️
unittests 85.65% <ø> (+0.17%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ 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.

@LOCEANlloydizard LOCEANlloydizard merged commit 147f1ad into OSOceanAcoustics:main Apr 18, 2026
21 of 22 checks passed
@LOCEANlloydizard LOCEANlloydizard deleted the update-dev-setup branch April 18, 2026 18:47
Comment on lines +72 to +75
retry_if_failed=5,
)

downloader = pooch.HTTPDownloader(timeout=300)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Hey @LOCEANlloydizard : I am curious - is this a safety measure because you saw whole bunch of failed attempts?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

yes, after I deleted the local cache directory, it started downloading again and I got several timeout errors! But I mostly saw this locally, not on CI (if I remember correctly). Maybe it's because the asset files are getting too large..?

In the long term, maybe we could reduce the number of retries and the timeout? or maybe that altogether?

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.

Update docs and code for setting up dev environment

3 participants