code: def minimum_image(self):
          
          if self.box_vectors is None:
              raise ValueError('No periodic vectors defined')
          else:
              self.r_array = minimum_image(self.r_array, self.box_vectors.diagonal())
          
          return self
docs: Align the system according to the minimum image convention