Skip to content

Commit

Permalink
isdefined(Mads, :yaml) added to prevent test failures
Browse files Browse the repository at this point in the history
  • Loading branch information
montyvesselinov committed Feb 8, 2017
1 parent 479a166 commit ea09417
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion examples/model_coupling/runtests.jl
Expand Up @@ -54,7 +54,7 @@ Mads.madsinfo("External coupling using `Command` and JSON ...")
md = Mads.loadmadsfile(joinpath(workdir, "external-json-exp.mads"))
# sparam, sresults = Mads.calibrate(md)
efor = Mads.forward(md)
if !haskey(ENV, "MADS_NO_PYTHON")
if !haskey(ENV, "MADS_NO_PYTHON") && isdefined(Mads, :yaml)
Mads.madsinfo("External coupling using `Command` and YAML ...")
md = Mads.loadmadsfile(joinpath(workdir, "external-yaml.mads"))
# yparam, yresults = Mads.calibrate(md)
Expand Down
2 changes: 1 addition & 1 deletion examples/optimization/runtests.jl
Expand Up @@ -12,7 +12,7 @@ if Mads.long_tests
md = Mads.loadmadsfile(joinpath(workdir, "external-jld.mads"))
jparam, jresults = Mads.calibrate(md, maxEval=2, np_lambda=1, maxJacobians=1)

if !haskey(ENV, "MADS_NO_PYTHON")
if !haskey(ENV, "MADS_NO_PYTHON") && isdefined(Mads, :yaml)
md = Mads.loadmadsfile(joinpath(workdir, "external-yaml.mads"))
yparam, yresults = Mads.calibrate(md, maxEval=2, np_lambda=1, maxJacobians=1)
@Base.Test.test yparam == jparam
Expand Down

0 comments on commit ea09417

Please sign in to comment.