diff options
author | 2017-06-29 11:18:58 -0700 | |
---|---|---|
committer | 2017-06-29 11:18:58 -0700 | |
commit | 57e7a20d4defcb27c1694e4868ade115fea9205e (patch) | |
tree | 32c396f2a040a53645dd53128aa99f2bad3da983 /Python/pywarpx/Bucket.py | |
parent | a03c1c40bc104bcb54ab27402b2688df336cd283 (diff) | |
parent | f6dd7a697a15ff568bfd33abed62066bbd2639c8 (diff) | |
download | WarpX-57e7a20d4defcb27c1694e4868ade115fea9205e.tar.gz WarpX-57e7a20d4defcb27c1694e4868ade115fea9205e.tar.zst WarpX-57e7a20d4defcb27c1694e4868ade115fea9205e.zip |
Merge branch 'master' of bitbucket.org:berkeleylab/warpx
Diffstat (limited to 'Python/pywarpx/Bucket.py')
-rw-r--r-- | Python/pywarpx/Bucket.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Python/pywarpx/Bucket.py b/Python/pywarpx/Bucket.py index 2f4a1704c..916b030d1 100644 --- a/Python/pywarpx/Bucket.py +++ b/Python/pywarpx/Bucket.py @@ -25,7 +25,9 @@ class Bucket(object): "Concatenate the attributes into a string" result = [] for attr, value in self.argvattrs.iteritems(): - attrstring = '{0}.{1}={2} '.format(self.instancename, attr, value) + # --- repr is applied to value so that for floats, all of the digits are included. + # --- The strip is then needed when value is a string. + attrstring = '{0}.{1}={2} '.format(self.instancename, attr, repr(value).strip("'\"")) result += [attrstring] return result |