Skip to content

Commit

Permalink
fix: use correct reference coordinate for virtual bead calc
Browse files Browse the repository at this point in the history
  • Loading branch information
jag1g13 committed Oct 8, 2021
1 parent 15a22e8 commit a0a61f2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycgtool/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@ def apply(self, frame: Frame, cg_frame: typing.Optional[Frame] = None):
coords = np.array(
[cg_res.atom(atom).coords for atom in bmap],
dtype=np.float32)
bead.coords = calc_coords_weight(ref_coords, coords,
bead.coords = calc_coords_weight(coords[0], coords,
bmap.weights,
unitcell_lengths)

Expand Down

0 comments on commit a0a61f2

Please sign in to comment.