Skip to content

Commit

Permalink
Update hbonds.jl
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonOresten committed Jul 19, 2024
1 parent e35bfee commit a4d5229
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hbonds.jl
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@ end

# i:C=O, j:N-H
function get_Hbonds(coords::Array{T,3}, cutoff::Real=CUTOFF) where T<:Real
C_pos = [coords[:, 3, 1:end-1] fill(T(NaN), 3)]
C_pos = coords[:, 3, :]
O_pos = get_oxygen_positions(coords)
N_pos = [fill(T(NaN), 3) coords[:, 1, 2:end]]
N_pos = coords[:, 1, :]
H_pos = get_hydrogen_positions(coords)

ON_dist = col_norms(O_pos .- reshape(N_pos, 3, 1, :))
Expand Down

2 comments on commit a4d5229

@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:

  • Update get_oxygen_positions and get_hydrogen_positions to pad with NaNs directly to match the input chain length.

@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/111351

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.4.1 -m "<description of version>" a4d52298e971762b04daeb69617a32b26b12f053
git push origin v0.4.1

Please sign in to comment.