Skip to content

Fix index issue in make_whole#1986

Closed
jbarnoud wants to merge 1 commit intodevelopfrom
whole-bugfix
Closed

Fix index issue in make_whole#1986
jbarnoud wants to merge 1 commit intodevelopfrom
whole-bugfix

Conversation

@jbarnoud
Copy link
Copy Markdown
Contributor

I missed an error when reviewing @richardjgowers 's #1965. Coordinates of the AtomGroup where indexed with indices relative to the whole system.

@richardjgowers
Copy link
Copy Markdown
Member

@jbarnoud we'll also have to fix that when you supply a reference atom it doesn't check where in the atomgroup this reference atom is from?

@codecov
Copy link
Copy Markdown

codecov bot commented Jul 14, 2018

Codecov Report

Merging #1986 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop    #1986   +/-   ##
========================================
  Coverage    88.48%   88.48%           
========================================
  Files          142      142           
  Lines        17202    17202           
  Branches      2635     2635           
========================================
  Hits         15221    15221           
  Misses        1385     1385           
  Partials       596      596

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 50d8687...8475bae. Read the comment docs.

@jbarnoud
Copy link
Copy Markdown
Contributor Author

@richardjgowers I do not think so. The atom that can be given as reference is checked to be part of the AtomGroup. The index is obtained relative to the system with the .index attribute, which is what we want since it is used to get the bonds.

I realize, though, that my fix assumes that the atoms in the atomgroup are sorted.

@jbarnoud
Copy link
Copy Markdown
Contributor Author

Superseded by #1987.

@jbarnoud jbarnoud closed this Jul 17, 2018
@RMeli RMeli deleted the whole-bugfix branch February 18, 2025 21:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants