Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment