Skip to content

Commit

Permalink
partype
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Jan 2, 2024
1 parent dbbd08d commit 550de40
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/MadsParameters.jl
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,14 @@ Returns:
function isparam(madsdata::AbstractDict, dict::AbstractDict)
if haskey(madsdata, "Parameters")
par = getparamkeys(madsdata)
type = getparamstype(madsdata)
partype = getparamstype(madsdata)
else
par = collect(keys(madsdata))
partype = ""
end
flag = true
for i in par
if !haskey(dict, i) && type == "opt"
if !haskey(dict, i) && partype == "opt"
@warn("Parameter $(i) is missing!")
flag = false
break
Expand Down

0 comments on commit 550de40

Please sign in to comment.