Skip to content
Permalink
Browse files

Merge pull request #2890 from RudolfWeeber/ff_feature_guard

Tutorials: Feature guards for ferrofluid tutorial
  • Loading branch information...
fweik committed Jun 8, 2019
2 parents 1db3e66 + b3f0442 commit 67655dd9eb4d3dac7f1e7498f3d0e184633b1e0a
@@ -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."
]
},
{
@@ -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",
@@ -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"
]
},
{
@@ -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",
@@ -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"
]
},
{
@@ -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"
]

0 comments on commit 67655dd

Please sign in to comment.
You can’t perform that action at this time.