diff options
author | 2021-12-21 11:03:22 -0800 | |
---|---|---|
committer | 2021-12-21 11:03:22 -0800 | |
commit | 59918d5b98ecca0679fafd12af03f9d6a68fdba7 (patch) | |
tree | ddc709f50f19873e58e41ac18618c7fff9462118 /Examples/Tests/pass_mpi_communicator/analysis.py | |
parent | 1c8935ac0cf9d9b826ed5e02796ff8ba631f9fc7 (diff) | |
download | WarpX-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/pass_mpi_communicator/analysis.py')
-rwxr-xr-x | Examples/Tests/pass_mpi_communicator/analysis.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/Examples/Tests/pass_mpi_communicator/analysis.py b/Examples/Tests/pass_mpi_communicator/analysis.py index 9c1be3e51..db23c7047 100755 --- a/Examples/Tests/pass_mpi_communicator/analysis.py +++ b/Examples/Tests/pass_mpi_communicator/analysis.py @@ -4,15 +4,18 @@ # the script `PICMI_inputs_2d`. import sys + import matplotlib + matplotlib.use('Agg') import yt + yt.funcs.mylog.setLevel(50) import numpy as np + sys.path.insert(1, '../../../../warpx/Regression/Checksum/') import checksum - # this will be the name of the first plot file fn1 = "Python_pass_mpi_comm_plt1_00010" # second plot file |