Skip to content

Commit

Permalink
bump to latest geovista-data
Browse files Browse the repository at this point in the history
  • Loading branch information
bjlittle committed Jun 11, 2024
1 parent 002f543 commit aca7d41
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 13 deletions.
2 changes: 1 addition & 1 deletion .readthedocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ build:
- git fetch --unshallow
- git fetch --all
post_install:
- geovista download --all --decompress
- geovista download --operational --decompress

conda:
environment: requirements/locks/rtd.yml
Expand Down
2 changes: 1 addition & 1 deletion src/geovista/cache/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
BASE_URL: str = "https://github.com/bjlittle/geovista-data/raw/{version}/assets/"
"""Base URL for :mod:`geovista` resources."""

DATA_VERSION: str = "2024.03.8"
DATA_VERSION: str = "2024.06.0"
"""The ``geovista-data`` repository version for :mod:`geovista` resources."""

GEOVISTA_CACHEDIR: str = "GEOVISTA_CACHEDIR"
Expand Down
20 changes: 20 additions & 0 deletions src/geovista/cache/registry.txt
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,26 @@ tests/images/clouds.png a650d7717324453f86e9f03b55009a79d23ff124fee58791bfe0d558
tests/images/clouds_robin.png 73a0f6d6267f7f248643bc733e3b2699af47b711286e449171310e9fb2024f90
tests/images/curvilinear__from_2d__orca_moll.png 39e693dccfbefe67f1ed438341342f1c6b5fa11f24b3d46c4706d8514c043d45
tests/images/curvilinear__from_2d__orca.png 492868315f090aad25278660ffd97df31e7158f5c142962e8e23e16773199ade
tests/images/geoplotter.test_view_poi.test_lam_polar__eqc.png 602bba11b641ac202308adf9d0833152af6ccc370123dc8d618424172119a092
tests/images/geoplotter.test_view_poi.test_lam_polar__moll.png 429b2a7fa80aba2b712f49341ccb0daa6f70a0a5141da014618ac5cad17e50c9
tests/images/geoplotter.test_view_poi.test_lam_polar__None.png 5f2ec2b36c900946cdfab0b52615e7c955692573f788691f0de2bfd6753ddf16
tests/images/geoplotter.test_view_poi.test_lam_polar_offset__eqc.png 14b14fea64e276cbc81d9cf6cc3f7733ef302acbed2aa50d867025a2128a19bb
tests/images/geoplotter.test_view_poi.test_lam_polar_offset__moll.png a39f3f65618e8cd4ff55d9a4f644de947dd5ea0cda04dc8a304b2f2f1ad68ab4
tests/images/geoplotter.test_view_poi.test_lam_polar_offset__None.png 2c3df00c609a84a3205ce1cd627990e505d4a9fb5b9e11316616aff1bf249895
tests/images/geoplotter.test_view_poi.test_lam_polar_offset__poly.png 632bc7aed9d2f57c8ad94489563554caeb0799dbd84cab200f55c65a098ab8d9
tests/images/geoplotter.test_view_poi.test_lam_polar__poly.png bf7c5e4deb06075720e23fa496f7aac96cd89e974934c737c76efca1743c83a3
tests/images/geoplotter.test_view_poi.test_lam_polar_post__eqc.png 54cbacc1861ff643aa1ae523f2bd02572dab213951e28553d5a2aefee7af7fb4
tests/images/geoplotter.test_view_poi.test_lam_polar_post__moll.png 31e0d3384c558d49d953169a0c9b58a38e9c1237edae683f5a985253924967ea
tests/images/geoplotter.test_view_poi.test_lam_polar_post__None.png 9598434191124b31470a32d12e72b05137a04b8b17ddbd4e77235b282b4d4aaa
tests/images/geoplotter.test_view_poi.test_lam_polar_post__poly.png 711c162b040d87e9c106db384e56a65e7fefc920430a8db43fca93ff36b0261b
tests/images/geoplotter.test_view_poi.test_lam_uk__eqc.png a3ec04c502b13c0a2b116dfc099210f1ad6cf432b01ba35dbbafa1580bce7e31
tests/images/geoplotter.test_view_poi.test_lam_uk__moll.png 5aa162f8a5f2050d6f83e92076a5a054185a99f58d992413cd7b27af1642a0a5
tests/images/geoplotter.test_view_poi.test_lam_uk__None.png ade606a18be510119c273653d417b13f8ecdbb67f7e04e196078bcd29de3ebaa
tests/images/geoplotter.test_view_poi.test_lam_uk__poly.png 5ce062d11b7ae2a4935b7ede302dcbbd54b2b267816fc18e8d09aa650693f3b6
tests/images/geoplotter.test_view_poi.test_lam_uk_post__eqc.png 5ae9250b5371384f06b53a099a5586790503c2cea05da8ac889d51766f53542a
tests/images/geoplotter.test_view_poi.test_lam_uk_post__moll.png 7bdaf3962b23dcf2a3eb9077f262ccf8c21d1dddccd3ba1e1a6b3e9033cffd2d
tests/images/geoplotter.test_view_poi.test_lam_uk_post__None.png 76e32f2ac7683faf4e047bcf19f017a3e566e5c697267d9122e381613024ae1f
tests/images/geoplotter.test_view_poi.test_lam_uk_post__poly.png 578374c6405396e831e107615bec4b9e83d4fc56b69b973482d5b47249cca369
tests/images/point_cloud__from_points__orca_cloud_eqc.png e41921a712d335061b7507b9fa0880d93a52d7391cb4c586f163d911b54e8362
tests/images/point_cloud__from_points__orca_cloud.png 8f723740ca12bfc9c02a29806a777e985d2a3a64a187e39e8a78c1d5ad1a29ff
tests/images/rectilinear__from_1d__oisst_eqc.png b4e1d6b0984dbde1b7123b62eb8643206b83a399df90d32d877bf42089863350
Expand Down
16 changes: 5 additions & 11 deletions src/geovista/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -231,12 +231,6 @@ def main(version: bool, report: bool, cache: bool) -> None: # numpydoc ignore=P
is_flag=True,
help="Show names of registered assets.",
)
@click.option(
"-m",
"--mesh",
is_flag=True,
help="Download mesh assets.",
)
@click.option(
"-ne",
"--natural-earth",
Expand All @@ -246,6 +240,7 @@ def main(version: bool, report: bool, cache: bool) -> None: # numpydoc ignore=P
flag_value=ALL,
help="Download Natural Earth feature assets.",
)
@click.option("-o", "--operational", is_flag=True, help="Download all non-test assets.")
@click.option("-p", "--pantry", is_flag=True, help="Download sample data assets.")
@click.option(
"-r",
Expand All @@ -272,8 +267,8 @@ def download(
dry_run: bool,
image: bool,
show: bool,
mesh: bool,
natural_earth: Iterable[str],
operational: bool,
pantry: bool,
raster: bool,
target: pathlib.Path | None,
Expand Down Expand Up @@ -331,15 +326,14 @@ def collect(prefix: str) -> list[str]:

if pull:
_download_group(fnames, decompress=decompress)
elif operational:
names = sorted(set(fnames) - set(collect("tests")))
_download_group(names, decompress=decompress, name="operational")
else:
if image:
name = "images"
_download_group(collect(f"tests/{name}"), decompress=decompress, name=name)

if mesh:
name = "mesh"
_download_group(collect(name), decompress=decompress, name=name)

if pantry:
name = "pantry"
_download_group(collect(name), decompress=decompress, name=name)
Expand Down

0 comments on commit aca7d41

Please sign in to comment.