Closed hboisgon closed 3 months ago
Yes, this is what pooch suggests: https://www.fatiando.org/pooch/latest/registry-files.html#registry-files
POOCH = pooch.create(
path=pooch.os_cache("plumbus"),
base_url="https://github.com/rick/plumbus/raw/{version}/data/",
version=version,
version_dev="main",
# We'll load it from a file later
registry=None,
)
I guess we should do so for the entire registry.
I see that ADH_SanDiego.nc was updated two weeks ago but this results in a temporary failing of downloading with the following error message (see linked issue in hydromt https://github.com/Deltares/hydromt/issues/332 ):
I am guessing this may be due to the fact that registry.txt is linked to the installed xugrid version, while dowloading download from the latest main branch rather than a branch corresponding to the installed release (in my case 0.3.0).
Maybe updating the base_url or version property here would work? https://github.com/Deltares/xugrid/blob/abb4e21a36f39369f6736ace2dd757923d4d58e8/xugrid/data/sample_data.py#L11-L17