Skip to content

Conversation

@rjleveque
Copy link
Member

Try to download directly from http://sift.pmel.noaa.gov/ComMIT/compressed/info_sz.dat if it's not in the pooch cache.

Also updated the version in the data/ directory (no change in unit source data itself) and this will still be used if pooch fails. known_hash can be used in future to see if file has changed online.

This change was motivated by the fact that pip install clawpack does not expose the local version in data/ and so using dtopotools.SiftFault fails in Github Actions when building a Juptyer Book there.

…fo_sz.dat

also updated the version in the data/ directory (no change in unit source
data itself) and this will still be used if pooch fails.
`known_hash` can be used in future to see if file has changed online.
This change motivated by the fact that `pip install clawpack` does not
expose the local version in data/ and so using `dtopotools.SiftFault` fails
in Github Actions when building a Juptyer Book there.
@mandli
Copy link
Member

mandli commented Sep 7, 2025

This looks fine to me, but I had to ask if "pooch" is an acronym or just an entertaining name for a data repository. Is "dog house" involved?

@rjleveque
Copy link
Member Author

This looks fine to me, but I had to ask if "pooch" is an acronym or just an entertaining name for a data repository. Is "dog house" involved?

I think the idea is that it fetches things for you. Seems like a useful package, https://www.fatiando.org/pooch/latest/about.html

@rjleveque
Copy link
Member Author

And for the particular case of the file from http://sift.pmel.noaa.gov/ComMIT/compressed/info_sz.dat, I like the fact that it tests a checksum and can alert us if NOAA changes their unit source definitions at some point in the future, so we don't have a stale version hardwired into GeoClaw.

@rjleveque rjleveque merged commit ac5a54b into clawpack:master Sep 8, 2025
1 check failed
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.

2 participants