aboutsummaryrefslogtreecommitdiff
path: root/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
diff options
context:
space:
mode:
authorGravatar Axel Huebl <axel.huebl@plasma.ninja> 2021-12-21 11:03:22 -0800
committerGravatar GitHub <noreply@github.com> 2021-12-21 11:03:22 -0800
commit59918d5b98ecca0679fafd12af03f9d6a68fdba7 (patch)
treeddc709f50f19873e58e41ac18618c7fff9462118 /Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
parent1c8935ac0cf9d9b826ed5e02796ff8ba631f9fc7 (diff)
downloadWarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.tar.gz
WarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.tar.zst
WarpX-59918d5b98ecca0679fafd12af03f9d6a68fdba7.zip
pre-commit: Python imports (#2686)
* pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 * pre-commit: Python imports Add two new Python rules to: - remove unused imports - sort imports according to PEP8 `.editorconfig`: isort options https://github.com/PyCQA/isort/wiki/isort-Settings * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * move import os (mpl) * move import yt (mpl) * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleanup around matplotlib.use * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * Cleaning: double np and lib Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Examples/Tests/PythonWrappers/PICMI_inputs_2d.py')
-rwxr-xr-xExamples/Tests/PythonWrappers/PICMI_inputs_2d.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py b/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
index 8e4648554..597bcd69a 100755
--- a/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
+++ b/Examples/Tests/PythonWrappers/PICMI_inputs_2d.py
@@ -1,8 +1,8 @@
#!/usr/bin/env python3
-import numpy as np
import matplotlib.pyplot as plt
from mpl_toolkits.axes_grid1.axes_divider import make_axes_locatable
+import numpy as np
from pywarpx import picmi
# Number of time steps
@@ -171,6 +171,7 @@ sim.initialize_warpx()
# Get fields data using Python wrappers
import pywarpx.fields as pwxf
+
Ex = pwxf.ExFPWrapper(include_ghosts = include_ghosts)
Ey = pwxf.EyFPWrapper(include_ghosts = include_ghosts)
Ez = pwxf.EzFPWrapper(include_ghosts = include_ghosts)