Commit 166a07fd authored by Alberto Ramos's avatar Alberto Ramos

Added interface to return error of a single MC id

The method `err(a::uwreal, str::String)` with optional parameter `str`
returns the error corresponding to the MC ID `str`.
parent 2c214757
......@@ -45,6 +45,9 @@ function err(a::uwreal)
return a.err
end
err(a::uwreal, mcid::Int64) = sqrt(a.cfd[mcid].var)
err(a::uwreal, str::String) = err(a, get_id_from_name(str))
"""
value(a::uwreal)
......
Markdown is supported
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