code: def put_coord_inside(lattice, cart_coordinate):
      
      fc = lattice.get_fractional_coords(cart_coordinate)
      return lattice.get_cartesian_coords([c - np.floor(c) for c in fc])
docs: converts a cartesian coordinate such that it is inside the unit cell.