diff options
author | 2019-03-29 15:15:54 +0100 | |
---|---|---|
committer | 2019-03-29 15:15:54 +0100 | |
commit | 0605ce27e604549c3e93f2e9e342bd356000cf9e (patch) | |
tree | 6cdb42dfacedbefbc231c0e7d9674b825cf95696 /Python/pywarpx/picmi.py | |
parent | b534b688dedd48b645bac47854260321e7960bf9 (diff) | |
parent | 761c82556e31de274d1e4c356bf81189abb1a1aa (diff) | |
download | WarpX-0605ce27e604549c3e93f2e9e342bd356000cf9e.tar.gz WarpX-0605ce27e604549c3e93f2e9e342bd356000cf9e.tar.zst WarpX-0605ce27e604549c3e93f2e9e342bd356000cf9e.zip |
Merge pull request #79 from ECP-WarpX/parser
use parser's setConstant function instead of using string replacement
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index 70d63e467..5d7c63f3f 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -188,7 +188,7 @@ class AnalyticDistribution(picmistandard.PICMI_AnalyticDistribution): species.__setattr__('density_function(x,y,z)', self.density_expression) for k,v in self.user_defined_kw.items(): - setattr(pywarpx.constants, k, v) + setattr(pywarpx.my_constants, k, v) if np.any(np.not_equal(self.rms_velocity, 0.)): species.momentum_distribution_type = "gaussian" |