def update_min_max(self, minmax_mode ="scaled"):
        if minmax_mode == "scaled":
            scale=True
        elif minmax_mode != "scaled":
            scale=False
        x = list(self.writer.get_x(scale))
        y = list(self.writer.get_y(scale))
        z = list(self.writer.get_z(scale)) 
        self.writer.set_header_property("x_max", np.max(x))
        self.writer.set_header_property("x_min", np.min(x))
        self.writer.set_header_property("y_max", np.max(y))
        self.writer.set_header_property("y_min", np.min(y))
        self.writer.set_header_property("z_max", np.max(z))
        self.writer.set_header_property("z_min", np.min(z))
Update the min and max X,Y,Z values.
dataset/ETHPy150Open grantbrown/laspy/laspy/header.py/HeaderManager.update_min_max