Changed the definition of half_points to include math.ceil.