Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Removed from __future__ #3008

Merged
merged 3 commits into from
Jul 25, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion doc/doxygen/gen_doxyconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
#
# This script generates the file doxy-features
#
from __future__ import print_function
import inspect
import sys
import os
Expand Down
1 change: 0 additions & 1 deletion doc/sphinx/visualization.rst
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,6 @@ following code snippet demonstrates the visualization of the director property
and individual settings for two particle types (requires the ``ROTATION``
feature)::

from __future__ import print_function
import numpy
from espressomd import *
from espressomd.visualization_opengl import *
Expand Down
27 changes: 4 additions & 23 deletions doc/tutorials/01-lennard_jones/01-lennard_jones.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,19 +16,18 @@
"2. [Background](#Background)\n",
"3. [The Lennard-Jones Potential](#The-Lennard-Jones-Potential)\n",
"4. [Units](#Units)\n",
"5. [Python versions](#Python-versions)\n",
"6. [First steps](#First-steps)\n",
"7. [Overview of a simulation script](#Overview-of-a-simulation-script)\n",
"5. [First steps](#First-steps)\n",
"6. [Overview of a simulation script](#Overview-of-a-simulation-script)\n",
" 1. [System setup](#System-setup)\n",
" 2. [Choosing the thermodynamic ensemble, thermostat](#Choosing-the-thermodynamic-ensemble,-thermostat)\n",
" 3. [Placing and accessing particles](#Placing-and-accessing-particles)\n",
" 4. [Setting up non-bonded interactions](#Setting-up-non-bonded-interactions)\n",
" 5. [Warmup](#Warmup)\n",
" 6. [Integrating equations of motion and taking measurements](#Integrating-equations-of-motion-and-taking-measurements)\n",
" 7. [Simple Error Estimation on Time Series Data](#Simple-Error-Estimation-on-Time-Series-Data)\n",
"8. [Exercises](#Exercises)\n",
"7. [Exercises](#Exercises)\n",
" 1. [Binary Lennard-Jones Liquid](#Binary-Lennard-Jones-Liquid)\n",
"9. [References](#References)\n",
"8. [References](#References)\n",
" "
]
},
Expand Down Expand Up @@ -92,24 +91,6 @@
"words LJ units."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Python versions\n",
"\n",
"Espresso can be used both, with python 2 and python 3. In these tutorials, we use python 3 print syntax. If you are on python 2, issue the following command to activate it:"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
1 change: 0 additions & 1 deletion doc/tutorials/02-charged_system/02-charged_system-1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function\n",
"from espressomd import System, electrostatics\n",
"import espressomd\n",
"import numpy\n",
Expand Down
1 change: 0 additions & 1 deletion doc/tutorials/02-charged_system/02-charged_system-2.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function\n",
"from espressomd import System, electrostatics, electrostatic_extensions\n",
"from espressomd.shapes import Wall\n",
"import espressomd\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function, division\n",
"import espressomd\n",
"espressomd.assert_features(['CUDA', 'LENNARD_JONES'])\n",
"from espressomd import System, interactions, lb, polymer\n",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

import numpy as np
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/06-active_matter/EXERCISES/flow_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

import numpy as np
import os

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

from math import cos, pi, sin
import numpy as np
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

from math import cos, pi, sin
import numpy as np
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

import numpy as np
import os
import sys
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/06-active_matter/SOLUTIONS/flow_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

import numpy as np
import os
import sys
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

from math import cos, pi, sin
import numpy as np
import os
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
# #
##########################################################################

from __future__ import print_function

from math import cos, pi, sin
import numpy as np
import os
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/08-visualization/08-visualization.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function\n",
"\n",
"from matplotlib import pyplot\n",
"import espressomd\n",
"import numpy\n",
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/10-reaction_ensemble/scripts/RE_vs_cpH.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
from __future__ import division
import numpy as np

import espressomd
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/10-reaction_ensemble/scripts/RE_vs_cpH_poly.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
from __future__ import division
import numpy as np

import espressomd
Expand Down
10 changes: 1 addition & 9 deletions doc/tutorials/11-ferrofluid/11-ferrofluid_part1.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,7 @@
"2. [The Model](#The-Model)\n",
"3. [Structure of this tutorial](#Structure-of-this-tutorial)\n",
"4. [Compiling ESPResSo for this Tutorial](#Compiling-ESPResSo-for-this-Tutorial)\n",
"5. [Python Version](#Python-Version)\n",
"6. [A Monolayer-Ferrofluid System in ESPResSo](#A-Monolayer-Ferrofluid-System-in-ESPResSo)\n",
"5. [A Monolayer-Ferrofluid System in ESPResSo](#A-Monolayer-Ferrofluid-System-in-ESPResSo)\n",
" 1. [Setup](#Setup)\n",
" 2. [Sampling](#Sampling)\n",
" 3. [Sampling with animation](#Sampling-with-animation)\n",
Expand Down Expand Up @@ -199,13 +198,6 @@
"Please uncomment them in the <tt>myconfig.hpp<tt> and compile **ESPResSo** using this <tt>myconfig.hpp<tt>."
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"## Python Version"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand Down
2 changes: 0 additions & 2 deletions doc/tutorials/11-ferrofluid/11-ferrofluid_part3.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -121,8 +121,6 @@
"metadata": {},
"outputs": [],
"source": [
"from __future__ import print_function\n",
"\n",
"import espressomd\n",
"espressomd.assert_features('DIPOLES', 'LENNARD_JONES')\n",
"\n",
Expand Down
1 change: 0 additions & 1 deletion maintainer/benchmarks/lj.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
import os
import sys
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion maintainer/benchmarks/p3m.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
import os
import sys
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion maintainer/check_features.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
#
# Check whether all features used in the code are defined
#
from __future__ import print_function
import sys
import os
sys.path.append(os.path.join(sys.path[0], '..', 'config'))
Expand Down
1 change: 0 additions & 1 deletion maintainer/gh_post_docs_warnings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

from __future__ import print_function
import re
import os
import sys
Expand Down
1 change: 0 additions & 1 deletion maintainer/gh_post_style_patch.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#

from __future__ import print_function
import os
import requests
import subprocess
Expand Down
1 change: 0 additions & 1 deletion maintainer/git2changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
from __future__ import print_function
import string
import re
import os
Expand Down
1 change: 0 additions & 1 deletion samples/MDAnalysisIntegration.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"""
This example shows how to integrate MDAnalysis in ESPResSo
"""
from __future__ import print_function
import espressomd
from espressomd import MDA_ESP
import numpy as np
Expand Down
1 change: 0 additions & 1 deletion samples/billiard.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
ESPResSo 8Ball billiard game.
"""

from __future__ import print_function
import numpy as np
import math
from threading import Thread
Expand Down
1 change: 0 additions & 1 deletion samples/bonds-tst.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
This sample demonstrates how new bonds can be added between particles and how existing bond between particles can be deleted.
"""

from __future__ import print_function
import espressomd
from espressomd import assert_features

Expand Down
1 change: 0 additions & 1 deletion samples/cellsystem_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
This sample sets up a polymer and tests the available cell systems.
"""

from __future__ import print_function
import time
import numpy as np
import espressomd
Expand Down
1 change: 0 additions & 1 deletion samples/chamber_game.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
ESPResSo as a game engine.
"""

from __future__ import print_function
from threading import Thread
import numpy as np
import time
Expand Down
1 change: 0 additions & 1 deletion samples/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
constraints.
"""

from __future__ import print_function
import espressomd

# Check if necessary features have been compiled
Expand Down
1 change: 0 additions & 1 deletion samples/debye_hueckel.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
Debye-Hueckel potential. The system is maintained at a constant temperature
using a Langevin thermostat.
"""
from __future__ import print_function
import espressomd

required_features = ["ELECTROSTATICS", "LENNARD_JONES"]
Expand Down
1 change: 0 additions & 1 deletion samples/diffusion_coefficient.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@
Observables/Correlators framework.
"""

from __future__ import division, print_function
import espressomd
from espressomd.accumulators import Correlator
from espressomd.observables import ParticlePositions, ParticleVelocities
Expand Down
1 change: 0 additions & 1 deletion samples/dpd.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
varying density. The fluid is thermalized using a DPD thermostat.
"""

from __future__ import print_function
import espressomd

required_features = ["DPD"]
Expand Down
1 change: 0 additions & 1 deletion samples/drude_bmimpf6.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
ionic liquid BMIM PF6.
"""

from __future__ import print_function
import sys
import time
import os
Expand Down
1 change: 0 additions & 1 deletion samples/electrophoresis.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"""
This sample simulates electrophoresis using P3M solver.
"""
from __future__ import print_function
import espressomd

required_features = ["P3M", "EXTERNAL_FORCES", "LENNARD_JONES"]
Expand Down
1 change: 0 additions & 1 deletion samples/espresso_logo.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function
import math
import numpy as np

Expand Down
1 change: 0 additions & 1 deletion samples/grand_canonical.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
"""
This sample performs a grand canonical simulation of a salt solution.
"""
from __future__ import print_function
import numpy as np
import sys

Expand Down
1 change: 0 additions & 1 deletion samples/immersed_boundary/addBending.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function


def AddBending(system, kb):
Expand Down
1 change: 0 additions & 1 deletion samples/immersed_boundary/addSoft.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
#
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
from __future__ import print_function


def AddSoft(system, comX, comY, comZ, k1, k2):
Expand Down
2 changes: 0 additions & 2 deletions samples/lbf.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,6 @@
This samples sets up a Lattice-Boltzmann fluid and applies an external force
density on it.
"""
from __future__ import print_function

import matplotlib.pyplot as plt
import numpy as np
import argparse
Expand Down
Loading