From 64d89befdfd86fc44efe3bcd3a15c31d86181edc Mon Sep 17 00:00:00 2001 From: Axel Huebl Date: Thu, 11 Aug 2022 19:00:35 -0600 Subject: `isort`: AMReX, WarpX, etc. as First Party (#3307) * `isort`: AMReX, WarpX, etc. as First Party Mark the `amrex` and `pywarpx`, `picmistandard`, ... imports as first party, so that they do not change if run locally or remotely pre/post install. --- Python/pywarpx/WarpInterface.py | 3 ++- Python/pywarpx/picmi.py | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) (limited to 'Python/pywarpx') diff --git a/Python/pywarpx/WarpInterface.py b/Python/pywarpx/WarpInterface.py index 0a1899389..dc80e4bc9 100644 --- a/Python/pywarpx/WarpInterface.py +++ b/Python/pywarpx/WarpInterface.py @@ -14,9 +14,10 @@ # The class WarpX_EM3D inherits from Warp's EM3D class. It primarily provides # access to the field plotting routines. -from pywarpx import PGroup import warp +from pywarpx import PGroup + from . import fields # The particle weight is always the first pid diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index be227e182..a9a8f80af 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -13,6 +13,7 @@ import re import numpy as np import periodictable + import picmistandard import pywarpx -- cgit v1.2.3