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

update example notebook to include details on data source #34

Merged
merged 1 commit into from
May 14, 2019
Merged
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
23 changes: 13 additions & 10 deletions examples/galaxy_display.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,15 @@
"import yt"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"yt has several example datasets (and a number of tutorials on reading and analyzing its data) that are available on [its webpage](http://yt-project.org/data/). This tutorial will use the IsolatedGalaxy dataset. If you do not have IsoaltedGalaxy on your machine, please download and unzip it from http://yt-project.org/data/IsolatedGalaxy.tar.gz. \n",
"\n",
"yt's load function searches a for a user-configurable datapath (in addition to the current working directory). If you'd like to learn more about setting up your datapath for yt so that you can store your data centrally, see the documentation on configuring the `test_data_dir` on [this page](http://yt-project.org/doc/reference/configuration.html#available-configuration-options). The next cell loads IsolatedGalaxy as if it is in the `test_data_dir folder`. "
]
},
{
"cell_type": "code",
"execution_count": null,
Expand All @@ -29,17 +38,11 @@
},
"outputs": [],
"source": [
"ds = yt.load(\"data/IsolatedGalaxy/galaxy0030/galaxy0030\")\n",
"ds = yt.load(\"IsolatedGalaxy/galaxy0030/galaxy0030\")\n",
"s = ds.r[:,:,0.5]\n",
"s.display(\"density\")"
"ss = s.display(\"density\")\n",
"ss"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": []
}
],
"metadata": {
Expand All @@ -58,7 +61,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.6"
"version": "3.6.5"
}
},
"nbformat": 4,
Expand Down