Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Steinlechner
pykat
Commits
a2cf07c0
Commit
a2cf07c0
authored
Sep 17, 2014
by
Daniel Brown
Browse files
Changing param str method so that it writes the full floating point precision rather than just 12sf
parent
9e3a2877
Changes
1
Hide whitespace changes
Inline
Side-by-side
pykat/param.py
View file @
a2cf07c0
...
...
@@ -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
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment