Skip to content

Commit

Permalink
tweak pycall return type for 1.11
Browse files Browse the repository at this point in the history
  • Loading branch information
mloubout committed Oct 17, 2024
1 parent e238776 commit aa1b868
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/TimeModeling/Modeling/python_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,10 @@ function wrapcall_weights(func, args...;kw...)
return out
end

function wrapcall_wf(func, args...;kw...)
rtype = _outtype(get(kw, :illum, nothing), 1, Array{Float32})
out = rlock_pycall(func, rtype, args...;kw...)
function wrapcall_wf(func, modelPy, args...;kw...)
ndim = modelPy.dim
rtype = _outtype(get(kw, :illum, nothing), 1, Array{Float32, ndim})
out = rlock_pycall(func, rtype, modelPy, args...;kw...)
return out
end

Expand Down

0 comments on commit aa1b868

Please sign in to comment.