Skip to content
Snippets Groups Projects
Unverified Commit 8eef5b09 authored by Michiel Cottaar's avatar Michiel Cottaar
Browse files

Fix conversion to floats during printing

parent ff73bdb6
No related branches found
No related tags found
1 merge request!10Add Magnetisation transfer sequence
...@@ -4,7 +4,7 @@ import Printf: @sprintf ...@@ -4,7 +4,7 @@ import Printf: @sprintf
import ..Variables: VariableType, variables, AbstractBlock, Variable import ..Variables: VariableType, variables, AbstractBlock, Variable
import ..Containers: BuildingBlock, waveform, events, start_time import ..Containers: BuildingBlock, waveform, events, start_time
function _robust_value(possible_number::VariableType) function _robust_value(possible_number::AbstractJuMPScalar)
try try
return round(value(possible_number), sigdigits=3) return round(value(possible_number), sigdigits=3)
catch catch
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment