Commit a2cf07c0 authored by Daniel Brown's avatar Daniel Brown
Browse files

Changing param str method so that it writes the full floating point precision rather than just 12sf

parent 9e3a2877
......@@ -120,6 +120,8 @@ class Param(putable, putter):
def __str__(self):
if self._owner().removed:
raise pkex.BasePyKatException("{0} has been removed from the simulation".format(self._owner().name))
elif type(self.value) == float:
return repr(self.value)
else:
return str(self.value)
......@@ -127,7 +129,7 @@ class Param(putable, putter):
if self._owner().removed:
raise pkex.BasePyKatException("{0} has been removed from the simulation".format(self._owner().name))
else:
return self.value
return float(self.value)
def getFinesseText(self):
if self._owner().removed:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment