Skip to content

Commit

Permalink
fix pairwise(): deprecated implicit dims argument
Browse files Browse the repository at this point in the history
  • Loading branch information
axsk committed Feb 21, 2024
1 parent 7abdc1b commit cd4854c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/IsoMu/datalink.jl
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ end
function localpdistinds(traj::AbstractArray{<:Any,3}, radius)
elmin(x, y) = min.(x, y)
d = mapreduce(elmin, eachslice(traj, dims=3)) do coords
UpperTriangular(pairwise(Euclidean(), coords))
UpperTriangular(pairwise(Euclidean(), coords, dims=2))
end
inds = findall(0 .< d .<= radius)
return inds
Expand Down
2 changes: 1 addition & 1 deletion src/IsoMu/reactionpath.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ fromto(f::MaxPath, xi) = (argmin(xi), argmax(xi))

# compute the shortest chain through the samples xs with reaction coordinate xi
function shortestchain(xs, xi, from, to; sigma=1)
dxs = pairwise(Euclidean(), xs)
dxs = pairwise(Euclidean(), xs, dims=2)
d = size(xs, 1)
logp = onsager_machlup(dxs, xi, sigma, d)

Expand Down

0 comments on commit cd4854c

Please sign in to comment.