Skip to content

Commit

Permalink
Merge pull request #909 from mimiframework/mm-additional-constructor
Browse files Browse the repository at this point in the history
Surface the default constructor for MarginalModel
  • Loading branch information
davidanthoff authored Jul 18, 2022
2 parents 071c5fd + ac8345d commit aac4868
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 aac4868

Please sign in to comment.