Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove csv_kwargs from catalogue #35

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,6 @@ dmypy.json

#demo directory
notebooks/intake-demo/

# IDEs
.vscode/
1 change: 1 addition & 0 deletions _config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -80,3 +80,4 @@ sphinx:
footer_start:
- footer-logos
- footer-info
- footer-menu
Binary file added _static/footer-logo-nsf.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
27 changes: 27 additions & 0 deletions _templates/footer-extra.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<div class="container-fluid footer-extra">
<div class="container">
<center>
Theme by <a href="https://projectpythia.org">Project Pythia</a>. All code
in Pythia Cookbooks is licensed under
<a href="https://opensource.org/license/apache-2-0">Apache 2.0</a>. All
other non-code content is licensed under
<a href="https://creativecommons.org/licenses/by/4.0/">
Creative Commons BY 4.0 (CC BY 4.0)</a
>.
</center>
<br /><br />
<div class="row">
<p class="m-0">
<img
src="{{ pathto('_static/footer-logo-nsf.png', 1) }}"
style="float: left; width: 60px; height: 60px; margin-right: 1rem"
/>
This material is based upon work supported by the National Science
Foundation under Grant Nos. 2026863 and 2026899. Any opinions, findings,
and conclusions or recommendations expressed in this material are those
of the author(s) and do not necessarily reflect the views of the
National Science Foundation.
</p>
</div>
</div>
</div>
1 change: 1 addition & 0 deletions environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ dependencies:
- s3fs
- intake
- intake-xarray
- numpy<2
- pip
- cartopy
- matplotlib
Expand Down
3 changes: 1 addition & 2 deletions notebooks/catalog.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ metadata:
sources:
data_dictionary:
args:
csv_kwargs:
keep_default_na: false
keep_default_na: false
urlpath: '{{ CATALOG_DIR }}/inventory.csv'
description: Describes the data in the hrrrzarr source
driver: intake.source.csv.CSVSource
Expand Down
19 changes: 9 additions & 10 deletions notebooks/creating_catalogs.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -102,7 +102,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 2,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -212,7 +212,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 6,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -248,7 +248,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 7,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -290,14 +290,13 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 9,
"metadata": {
"tags": []
},
"outputs": [],
"source": [
"source = intake.open_csv('inventory.csv',\n",
" csv_kwargs={'keep_default_na': False})\n",
"source = intake.open_csv('inventory.csv')\n",
"source.name = 'data_dictionary'\n",
"source.description = 'Describes the data in the hrrrzarr source'"
]
Expand Down Expand Up @@ -399,7 +398,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 14,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -502,7 +501,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "intake-cookbook-dev",
"language": "python",
"name": "python3"
},
Expand All @@ -516,7 +515,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.2"
"version": "3.12.7"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
8 changes: 4 additions & 4 deletions notebooks/intake_introduction.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 1,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -289,7 +289,7 @@
},
{
"cell_type": "code",
"execution_count": null,
"execution_count": 20,
"metadata": {},
"outputs": [],
"source": [
Expand Down Expand Up @@ -409,7 +409,7 @@
],
"metadata": {
"kernelspec": {
"display_name": "Python 3 (ipykernel)",
"display_name": "intake-cookbook-dev",
"language": "python",
"name": "python3"
},
Expand All @@ -423,7 +423,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.10.5"
"version": "3.12.7"
},
"nbdime-conflicts": {
"local_diff": [
Expand Down
Loading