Skip to content

Commit 3c3d021

Browse files
committed
✅ Document and test data catalog loading functionality
Ensure that the ATLAS intake catalog is able to be loaded, and secretly document it's usage a little bit. Make the Github Actions test pass by busting the poetry cache through bumping json5 from 0.9.4 to 0.9.5.
1 parent 02904bb commit 3c3d021

4 files changed

Lines changed: 21 additions & 4 deletions

File tree

atl06_play.ipynb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1043,6 +1043,7 @@
10431043
"\n",
10441044
"# open the local intake data catalog file containing ICESat-2 stuff\n",
10451045
"# data download will depend on having a .netrc file in home folder\n",
1046+
"# dataset = intake.cat.atlas_cat.icesat2atl06.to_dask().unify_chunks()\n",
10461047
"dataset = deepicedrain.catalog.icesat2atl06.to_dask().unify_chunks()\n",
10471048
"dataset"
10481049
]

atl06_play.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@
8686

8787
# open the local intake data catalog file containing ICESat-2 stuff
8888
# data download will depend on having a .netrc file in home folder
89+
# dataset = intake.cat.atlas_cat.icesat2atl06.to_dask().unify_chunks()
8990
dataset = deepicedrain.catalog.icesat2atl06.to_dask().unify_chunks()
9091
dataset
9192

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
1-
from deepicedrain import __version__
1+
import intake
2+
3+
from deepicedrain import __version__, catalog
24

35

46
def test_version():
57
assert __version__ == "0.1.0"
8+
9+
10+
def test_deepicedrain_catalog():
11+
"""
12+
Test that the intake ATLAS data catalog can be loaded via both
13+
`deepicedrain.catalog` and `intake.cat.atlas_cat`
14+
"""
15+
catalog_entries = ["icesat2atlasdownloader", "icesat2atl06", "test_data"]
16+
assert list(catalog) == catalog_entries
17+
assert list(intake.cat.atlas_cat) == catalog_entries

poetry.lock

Lines changed: 6 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)