Added a comment for the latest change in pbc_points.
This commit is contained in:
parent
76e44dde49
commit
3f4f155976
@ -252,6 +252,8 @@ def pbc_points(coordinates, box, thickness=0, index=False, shear=False):
|
|||||||
"""
|
"""
|
||||||
if shear:
|
if shear:
|
||||||
box[2, 0] = box[2, 0] % box[2, 2]
|
box[2, 0] = box[2, 0] % box[2, 2]
|
||||||
|
# Shifts the box images in the other directions if they moved more than
|
||||||
|
# half the box length
|
||||||
if box[2, 0] > box[2, 2]:
|
if box[2, 0] > box[2, 2]:
|
||||||
box[2, 0] = box[2, 0] - box[2, 2]
|
box[2, 0] = box[2, 0] - box[2, 2]
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user