Skip to content

Commit aea6be3

Browse files
committed
CICOExt pars type fixed
1 parent 199fe69 commit aea6be3

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

ext/CICOBaseExt.jl

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,16 +54,17 @@ function cico_to_profile_values(plprob::ProfileLikelihoodProblem, ep::CICOBase.E
5454

5555
ep_retcode = cico_deduce_retcode(ep.status)
5656
ep_val = ep.value
57+
Tpars = typeof(optpars)
5758

5859
if isleft(ep)
59-
pars = ep_retcode == :Identifiable ? [ep.profilePoints[1].params, optpars] : [optpars]
60+
pars = ep_retcode == :Identifiable ? [convert(Tpars, ep.profilePoints[1].params), optpars] : [optpars]
6061
x = ep_retcode == :Identifiable ? [ep_val, x0] : [x0]
6162
obj = ep_retcode == :Identifiable ? [ep.profilePoints[1].loss, obj0] : [obj0]
6263
retcodes = (left = ep_retcode, right = :NotStarted)
6364
endpoints = (left = ep_val, right = nothing)
6465
stats = (left = LikelihoodProfiler.SciMLBase.OptimizationStats(;fevals=ep.counter), right = nothing)
6566
else
66-
pars = ep_retcode == :Identifiable ? [optpars, ep.profilePoints[1].params] : [optpars]
67+
pars = ep_retcode == :Identifiable ? [optpars, convert(Tpars, ep.profilePoints[1].params)] : [optpars]
6768
x = ep_retcode == :Identifiable ? [x0, ep_val] : [x0]
6869
obj = ep_retcode == :Identifiable ? [obj0, ep.profilePoints[1].loss] : [obj0]
6970
retcodes = (left = :NotStarted, right = ep_retcode)

0 commit comments

Comments
 (0)