Skip to content

Commit

Permalink
Fixes, relax NNlib version
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Sep 13, 2024
1 parent 486f722 commit b56d0f4
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "Backboner"
uuid = "9ac9c2a2-1cfe-46d3-b3fd-6fa470ea56a7"
authors = ["Anton Oresten <[email protected]>"]
version = "0.12.0"
version = "0.12.1"

[deps]
LinearAlgebra = "37e2e46d-f89d-539d-b4ee-838fcccc9c8e"
Expand All @@ -12,7 +12,7 @@ StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"

[compat]
LinearAlgebra = "1"
NNlib = "0.9"
NNlib = "0.8, 0.9"
PrecompileTools = "1"
Rotations = "1"
StaticArrays = "1"
Expand Down
3 changes: 3 additions & 0 deletions src/bonds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ and `stride` is the number of points to skip after each step.
get_distances(backbone::Backbone, start::Integer, step::Integer, stride::Integer) =
norms(get_displacements(backbone, start, step, stride))

const get_atom_displacements = get_displacements
const get_atom_distances = get_distances

_get_bond_lengths(bond_vectors::AbstractMatrix{<:Real}) = norms(bond_vectors)

function _get_bond_angles(bond_vectors::AbstractMatrix{T}) where T
Expand Down
4 changes: 2 additions & 2 deletions src/frames.jl
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ function rotation_matrices_to_quaternions(R::AbstractArray{<:Real,3})

# batched matmul, 4x1xN
Q = batched_mul(qs, reshape(weights, 4, 1, :))
Q_normalized = q ./ norms(Q, dims=1)
Q_normalized = Q ./ norms(Q, dims=1)

return reshape(q_normalized, 4, :)
return reshape(Q_normalized, 4, :)
end

2 comments on commit b56d0f4

@AntonOresten
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator register

Release notes:

  • Changed most mentions of "atom" to "point", including renaming the get_atom_displacements and get_atom_distances functions to get_displacements and get_distances respectively, with the old names still available in 0.12.x as aliases.
  • Relax NNlib version

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/115177

Tagging

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.12.1 -m "<description of version>" b56d0f49503b66c1075828295e5fec0e15c78767
git push origin v0.12.1

Please sign in to comment.