Skip to content

Commit

Permalink
Merge pull request #45 from YtihalX/master
Browse files Browse the repository at this point in the history
fixed the issue when `paras` in `get_contours_samples` is a vector
  • Loading branch information
fkguo committed Apr 6, 2024
2 parents af374f4 + c4a8a15 commit 2a5a579
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contour.jl
Expand Up @@ -411,7 +411,7 @@ function get_contours_samples(fit::ArrayFit, χsq, paras, ranges; nsamples=100,
start_array = args(fit)
_args = Symbol.(fit.parameters)
if _args[1] != :x0
if isa(paras, Tuple)
if isa(paras, Tuple) || isa(paras, Vector)
let para = String(paras[1])
if para[1] == 'x' && isascii(para[end])
paras = collect(_args[parse(Int, String(paras[i])[2:end]) + 1] for i in eachindex(paras))
Expand Down

0 comments on commit 2a5a579

Please sign in to comment.