ppmd.utility.sanitise module¶
-
ppmd.utility.sanitise.
wrap_positions
(extent, positions)¶ Ensure that the passed positions are contained within a domain of size extent with a centred origin. Returns a new array with wrapped and centred positions.
- Parameters
extent – 3 entry subscriptable object of domain extents.
positions – Nx3 numpy array of positions (not modified).