Skip to content

Commit

Permalink
fixed the issue when para in get_contours_samples is a vector
Browse files Browse the repository at this point in the history
  • Loading branch information
YtihalX committed Apr 6, 2024
1 parent af374f4 commit c4a8a15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/contour.jl
Original file line number Diff line number Diff line change
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 c4a8a15

Please sign in to comment.