Skip to content

Commit

Permalink
Allow both distribution types, fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisRackauckas committed Jul 19, 2023
1 parent 4854ea6 commit ce06374
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/operations.jl
Original file line number Diff line number Diff line change
Expand Up @@ -67,10 +67,10 @@ function amr_get(amr::JSON3.Object, sys::ODESystem, ::Val{:priors})
map(amr.semantics.ode.parameters) do p
if haskey(p, :distribution)
# Assumption: only fit parameters which have a distribution / bounds
if p.distribution.type != "StandardUniform1" || p.distribution.type != "Uniform1"
if p.distribution.type != "StandardUniform1" && p.distribution.type != "Uniform1"
@info "Invalid distribution type! Distribution type was $(p.distribution.type)"
end

dist = EasyModelAnalysis.Distributions.Uniform(p.distribution.parameters.minimum, p.distribution.parameters.maximum)
paramlist[findfirst(x->x==Symbol(p.id),namelist)] => dist
end
Expand Down

0 comments on commit ce06374

Please sign in to comment.