Skip to content

Commit

Permalink
Merge pull request #2890 from RudolfWeeber/ff_feature_guard
Browse files Browse the repository at this point in the history
Tutorials: Feature guards for ferrofluid tutorial
  • Loading branch information
fweik committed Jun 8, 2019
2 parents 1db3e66 + b3f0442 commit 67655dd
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 2 additions & 1 deletion doc/tutorials/11-ferrofluid/11-ferrofluid_part1.ipynb
Expand Up @@ -248,7 +248,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We start with importing all necessary packages."
"We start with checking for the presence of Espresso features and importing all necessary packages."
]
},
{
Expand All @@ -258,6 +258,7 @@
"outputs": [],
"source": [
"import espressomd\n",
"espressomd.assert_features('DIPOLES', 'LENNARD_JONES')\n",
"\n",
"from espressomd.magnetostatics import DipolarP3M\n",
"from espressomd.magnetostatic_extensions import DLC\n",
Expand Down
3 changes: 2 additions & 1 deletion doc/tutorials/11-ferrofluid/11-ferrofluid_part2.ipynb
Expand Up @@ -41,7 +41,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"We import all neccessary packages"
"We import all neccessary packages and check for the required Espresso features"
]
},
{
Expand All @@ -51,6 +51,7 @@
"outputs": [],
"source": [
"import espressomd\n",
"espressomd.assert_features('DIPOLES', 'LENNARD_JONES')\n",
"\n",
"from espressomd.magnetostatics import DipolarP3M\n",
"from espressomd.magnetostatic_extensions import DLC\n",
Expand Down
4 changes: 3 additions & 1 deletion doc/tutorials/11-ferrofluid/11-ferrofluid_part3.ipynb
Expand Up @@ -112,7 +112,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"First we import all necessary packages"
"First we import all necessary packages and check for the required Espresso features"
]
},
{
Expand All @@ -124,6 +124,8 @@
"from __future__ import print_function\n",
"\n",
"import espressomd\n",
"espressomd.assert_features('DIPOLES', 'LENNARD_JONES')\n",
"\n",
"from espressomd.magnetostatics import DipolarP3M\n",
"import numpy as np"
]
Expand Down

0 comments on commit 67655dd

Please sign in to comment.