aboutsummaryrefslogtreecommitdiff
path: root/Python/pywarpx/Bucket.py
diff options
context:
space:
mode:
authorGravatar Dave Grote <grote1@llnl.gov> 2017-06-28 16:14:16 -0700
committerGravatar Dave Grote <grote1@llnl.gov> 2017-06-28 16:15:23 -0700
commitf6dd7a697a15ff568bfd33abed62066bbd2639c8 (patch)
tree9c73944e511d34ed2866fe9597b8bfef9705370c /Python/pywarpx/Bucket.py
parent6dcd85dd5a1adefc90fc186bba5768727b842a6d (diff)
downloadWarpX-f6dd7a697a15ff568bfd33abed62066bbd2639c8.tar.gz
WarpX-f6dd7a697a15ff568bfd33abed62066bbd2639c8.tar.zst
WarpX-f6dd7a697a15ff568bfd33abed62066bbd2639c8.zip
Various fixes to conform to Python PICMI standard
Diffstat (limited to 'Python/pywarpx/Bucket.py')
-rw-r--r--Python/pywarpx/Bucket.py4
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