Skip to content
Permalink
Browse files

Tutorials: Feature guards for ferrofluid tutorial

  • Loading branch information...
RudolfWeeber committed Jun 8, 2019
1 parent 1db3e66 commit b3f04428603f6edfb0dab8da412368bcc7fed16f
@@ -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 b3f0442

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