From f6dd7a697a15ff568bfd33abed62066bbd2639c8 Mon Sep 17 00:00:00 2001 From: Dave Grote Date: Wed, 28 Jun 2017 16:14:16 -0700 Subject: Various fixes to conform to Python PICMI standard --- Python/pywarpx/Bucket.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Python/pywarpx/Bucket.py') 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 -- cgit v1.2.3