Skip to content

Commit

Permalink
fix import plugins error and get_current_time() error
Browse files Browse the repository at this point in the history
  • Loading branch information
gantian127 committed Sep 25, 2019
1 parent 2fb9664 commit b1c0821
Showing 1 changed file with 7 additions and 16 deletions.
23 changes: 7 additions & 16 deletions docs/demos/sedflux3d_and_child.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"## Sedflux3D + CHILD",
"\n",
"## Sedflux3D + CHILD\n",
"* Link to this notebook: https://github.com/csdms/pymt/blob/master/docs/demos/sedflux3d_and_child.ipynb\n",
"* Install command: `$ conda install notebook pymt_sedflux pymt_child`\n",
"\n"
Expand All @@ -15,20 +14,12 @@
"cell_type": "code",
"execution_count": 1,
"metadata": {},
"outputs": [
{
"name": "stderr",
"output_type": "stream",
"text": [
"\u001b[33;01m➡ plugins: Child, Avulsion, Plume, Sedflux3D, Subside\u001b[39;49;00m\n"
]
}
],
"outputs": [],
"source": [
"# Some magic to make plots appear within the notebook\n",
"%matplotlib inline\n",
"import numpy as np # In case we need to use numpy\n",
"import pymt"
"import pymt.models"
]
},
{
Expand All @@ -46,8 +37,8 @@
}
],
"source": [
"child = pymt.plugins.Child()\n",
"sedflux = pymt.plugins.Sedflux3D()\n",
"child = pymt.models.Child()\n",
"sedflux = pymt.models.Sedflux3D()\n",
"\n",
"child_in, child_dir = child.setup(\n",
" \"_child\",\n",
Expand Down Expand Up @@ -189,7 +180,7 @@
"metadata": {},
"outputs": [],
"source": [
"now = child.get_current_time()\n",
"now = child.time\n",
"times = np.arange(now, now + 1000, 1.0)\n",
"sedflux.update()\n",
"child.update()\n",
Expand Down Expand Up @@ -279,7 +270,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.7.1"
"version": "3.6.5"
}
},
"nbformat": 4,
Expand Down

0 comments on commit b1c0821

Please sign in to comment.