Commit 7e337807 authored by Antonino D'Annaç's avatar Antonino D'Annaç

updated manifest

parent 83cd15c0
This diff is collapsed.
...@@ -31,6 +31,12 @@ function Base.iterate(f::FitRes{Nothing}, state=1) ...@@ -31,6 +31,12 @@ function Base.iterate(f::FitRes{Nothing}, state=1)
return nothing return nothing
end end
import Base.getproperty
function Base.getproperty(v::FitRes{<:NamedTuple{names,types}}, name::Symbol) where {names, types}
(name in names) && return getfield(v.extra, name)
getfield(v,name)
end
import Base: print import Base: print
function __print_minimum_fit__(io::IO,f::FitRes{NT}) where NT <:Union{Nothing,NamedTuple} function __print_minimum_fit__(io::IO,f::FitRes{NT}) where NT <:Union{Nothing,NamedTuple}
...@@ -58,6 +64,7 @@ function print(io::IO,f::FitRes{NT}) where NT<:NamedTuple ...@@ -58,6 +64,7 @@ function print(io::IO,f::FitRes{NT}) where NT<:NamedTuple
end end
nothing nothing
end end
""" """
struct NoPrint struct NoPrint
......
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