Skip to content

Commit 8f46056

Browse files
authored
Merge pull request #30 from jukent/build
Nightly Build Failures
2 parents f24472b + 7893d4e commit 8f46056

File tree

6 files changed

+33
-16
lines changed

6 files changed

+33
-16
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ dmypy.json
130130
.pyre/
131131

132132
# data
133-
/data
133+
/data/*
134+
!/data/.gitkeep
134135

135136
# MyST build outputs
136137
_build

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ The motivation behind this repository is to provide a clear and concise resource
1313

1414
## Authors
1515

16-
[Negin Sobhani](@negin513), [Brian Vanderwende](@vanderwb), [Deepak Cherian](@dcherian), and [Ben Kirk](@benkirk)
16+
[Negin Sobhani](https://github.com/negin513), [Brian Vanderwende](https://github.com/vanderwb), [Deepak Cherian](https://github.com/dcherian), and [Ben Kirk](https://github.com/benkirk)
1717

1818
### Contributors
1919

data/.gitkeep

Whitespace-only changes.

environment.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ dependencies:
2929
- sphinx-pythia-theme
3030
- xarray
3131
- mystmd
32+
- gdown

myst.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,21 @@ project:
1010
- name: Ben Kirk
1111
copyright: '2024'
1212
github: https://github.com/projectpythia/dask-cookbook
13+
error_rules:
14+
- rule: link-resolves
15+
severity: ignore
16+
keys:
17+
- 'https://doi.org/**'
18+
- 'https://zenodo.org/**'
19+
- 'https://www.ncdc.noaa.gov/cdo-web/search?datasetid=GHCND'
20+
- 'https://www.ncei.noaa.gov/pub/data/ghcn/daily/ghcnd-stations.txt'
21+
- 'https://www.ncei.noaa.gov/products/land-based-station/global-historical-climatology-network-daily'
22+
- 'https://www.ncei.noaa.gov/pub/data/ghcn/daily/readme.txt'
23+
- 'https://journals.ametsoc.org/view/journals/atot/29/7/jtech-d-11-00103_1.xml'
24+
- rule: doi-link-valid
25+
severity: ignore
26+
keys:
27+
- 'https://zenodo.org/**' # also suppress the DOI validation error
1328
toc:
1429
- file: README.md
1530
- title: Preamble

notebooks/03-dask-xarray.ipynb

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@
102102
"import numpy as np \n",
103103
"import dask.array as da\n",
104104
"import xarray as xr\n",
105+
"import gdown\n",
106+
"import tarfile\n",
105107
"\n",
106108
"xr.set_options(display_expand_data=False);"
107109
]
@@ -301,13 +303,19 @@
301303
{
302304
"cell_type": "code",
303305
"execution_count": null,
304-
"id": "a53169fd-46dd-41bd-94ca-aed13e0f6357",
305-
"metadata": {
306-
"tags": []
307-
},
306+
"id": "842a4a69",
307+
"metadata": {},
308308
"outputs": [],
309309
"source": [
310-
"!./get_data.sh notebook3"
310+
"file_id = '1Tbuom1KMCwHjy7-eexEQcOXSr51i6mae'\n",
311+
"output_path = '../data/data.tar.gz'\n",
312+
"\n",
313+
"url = f'https://drive.google.com/uc?export=download&id={file_id}'\n",
314+
"gdown.download(url, output_path, quiet=False)\n",
315+
"\n",
316+
"# Extract to data/data_for_cesm directory\n",
317+
"with tarfile.open(output_path, 'r:gz') as tar:\n",
318+
" tar.extractall('../data/')"
311319
]
312320
},
313321
{
@@ -497,7 +505,7 @@
497505
"* `.compute()`\n",
498506
"* `.persist()`\n",
499507
"\n",
500-
"For more information about Dask Arrays, please see [Dask Array chapter](https://projectpythia.org/dask-cookbook/notebooks/01-dask-array)."
508+
"For more information about Dask Arrays, please see [Dask Array chapter](https://projectpythia.org/dask-cookbook/notebooks/dask-array)."
501509
]
502510
},
503511
{
@@ -963,14 +971,6 @@
963971
"* [github discussions: xarray](https://github.com/pydata/xarray/discussions) for general, non-bug, discussion, and usage questions\n",
964972
"* [github issues: xarray](https://github.com/pydata/xarray/issues/new) for bug reports and feature requests"
965973
]
966-
},
967-
{
968-
"cell_type": "code",
969-
"execution_count": null,
970-
"id": "57f2ad23-bd82-4fd2-89ef-8ca07feba117",
971-
"metadata": {},
972-
"outputs": [],
973-
"source": []
974974
}
975975
],
976976
"metadata": {

0 commit comments

Comments
 (0)