Skip to content

Commit

Permalink
Merge pull request #34 from munkm/notebook-update
Browse files Browse the repository at this point in the history
update example notebook to include details on data source
  • Loading branch information
matthewturk committed May 14, 2019
2 parents 5336f77 + 19bf995 commit 461d4b7
Showing 1 changed file with 13 additions and 10 deletions.
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

0 comments on commit 461d4b7

Please sign in to comment.