Skip to content

Commit

Permalink
Surface the default constructor for MarginalModel
Browse files Browse the repository at this point in the history
  • Loading branch information
davidanthoff committed Jul 10, 2022
1 parent c62435a commit ac8345d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/core/types/model.jl
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,10 @@ struct MarginalModel <: AbstractModel
base::Model
modified::Model
delta::Float64
end

function MarginalModel(base::Model, delta::Float64=1.0)
return new(base, Model(base), delta)
end
function MarginalModel(base::Model, delta::Float64=1.0)
return MarginalModel(base, Model(base), delta)
end

function Base.getindex(mm::MarginalModel, comp_name::Symbol, name::Symbol)
Expand Down

0 comments on commit ac8345d

Please sign in to comment.