From f969b8200e7f7c8cb7784f8b9ffce47073ad81b8 Mon Sep 17 00:00:00 2001 From: lmiq Date: Wed, 27 May 2026 11:04:59 -0300 Subject: [PATCH 1/2] update celllistmap and pdbtools interfaces for new versions --- testing/Project.toml | 4 ++++ testing/runtests.jl | 9 +++++---- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/testing/Project.toml b/testing/Project.toml index 84f6136..f39b58a 100644 --- a/testing/Project.toml +++ b/testing/Project.toml @@ -1,3 +1,7 @@ +[compat] +CellListMap = "0.10.2" +PDBTools = "3.27.0" + [deps] CellListMap = "69e1c6dd-3888-40e6-b3c8-31ac5f578864" PDBTools = "e29189f1-7114-4dbd-93d0-c5673a921a58" diff --git a/testing/runtests.jl b/testing/runtests.jl index 5e19099..e256012 100644 --- a/testing/runtests.jl +++ b/testing/runtests.jl @@ -22,14 +22,15 @@ struct MinimumDistance j::Int d::Float64 end -function update_mind(i, j, d2, pdb, md::MinimumDistance) +function update_mind(pair, pdb, md::MinimumDistance) + (; i, j, d2) = pair residue(pdb[i]) == residue(pdb[j]) && return md d = sqrt(d2) return d < md.d ? MinimumDistance(i, j, d) : md end -CellListMap.reducer(md1::MinimumDistance, md2::MinimumDistance) = md1.d < md2.d ? md1 : md2 +CellListMap.reducer!(md1::MinimumDistance, md2::MinimumDistance) = md1.d < md2.d ? md1 : md2 CellListMap.copy_output(md::MinimumDistance) = md -CellListMap.reset_output(::MinimumDistance) = MinimumDistance(0, 0, +Inf) +CellListMap.reset_output!(::MinimumDistance) = MinimumDistance(0, 0, +Inf) function check_mind(input_file::String) tolerance = nothing @@ -63,7 +64,7 @@ function check_mind(input_file::String) cutoff = tolerance * 1.5, output = MinimumDistance(0, 0, +Inf), ) - mind = map_pairwise((x,y,i,j,d2,md) -> update_mind(i, j, d2, pdb, md), sys) + mind = pairwise!((pair,md) -> update_mind(pair, pdb, md), sys) if (mind.d < (1 - precision) * tolerance) error("""\n From 47f58f0f226ab132dddddb85614abd8c8d975d9f Mon Sep 17 00:00:00 2001 From: lmiq Date: Wed, 27 May 2026 11:07:25 -0300 Subject: [PATCH 2/2] update changelog --- CHANGELOG.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5691693..e71ba2a 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -10,7 +10,11 @@ packmol changelog [badge-fix]: https://img.shields.io/badge/Fix-purple.svg [badge-info]: https://img.shields.io/badge/Info-gray.svg -Version 21.2.2-DEV +Version 21.2.3-DEV +-------------- +- ![INFO][badge-info] Update versions of CellListMap.jl and PDBTools.jl packages in test infraestructure. + +Version 21.2.2 -------------- - ![INFO][badge-info] Fix code typos. - ![INFO][badge-info] Add changelog verification CI run.