diff options
author | 2018-12-12 10:36:42 -0800 | |
---|---|---|
committer | 2018-12-12 10:36:42 -0800 | |
commit | 86ff3fa5cfb5695f55cd514d8df0e99b81187cce (patch) | |
tree | 22c9f627f37ad905bee89782cb71b4a14e468d53 /Python/pywarpx/Bucket.py | |
parent | 22dd9a7bdbfcf07fb3ad5d442011e4423cddbd6c (diff) | |
download | WarpX-86ff3fa5cfb5695f55cd514d8df0e99b81187cce.tar.gz WarpX-86ff3fa5cfb5695f55cd514d8df0e99b81187cce.tar.zst WarpX-86ff3fa5cfb5695f55cd514d8df0e99b81187cce.zip |
manually reverting back to last known working version of WarpX
Diffstat (limited to 'Python/pywarpx/Bucket.py')
-rw-r--r-- | Python/pywarpx/Bucket.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Python/pywarpx/Bucket.py b/Python/pywarpx/Bucket.py index c73b3dac9..66494a700 100644 --- a/Python/pywarpx/Bucket.py +++ b/Python/pywarpx/Bucket.py @@ -20,6 +20,10 @@ class Bucket(object): except KeyError: return object.__getattr__(self, name) + def check_consistency(self, vname, value, errmsg): + if vname in self.argvattrs: + assert (self.argvattrs[vname] is None) or (self.argvattrs[vname] == value), Exception(errmsg) + def attrlist(self): "Concatenate the attributes into a string" result = [] |