def test1(self, inFile):
        print("Test 1: Checking that all points fall inside header bounding box: ")
        bb = zip(["X", "Y", "Z"], inFile.header.min, inFile.header.max)
        print("... Header bounding box:")
        for i in bb:
            print("..." + str(i))

        bad_indices = self.bb(inFile, inFile.x, inFile.y, inFile.z)

        if len(bad_indices[0] == 0):
            print("... Header bounding box errors detected.")
            if len(bad_indices[0]) == len(inFile):
                new_bi = self.bb(inFile, inFile.X, inFile.Y, inFile.Z)[0]
                if len(inFile) < len(new_bi):
                    print("... Using unscaled values gives fewer invalid points: " + str(len(new_bi)) + ", header appears to use unscaled data.")
                    logging.info("Header appears to use unscaled data in max/min. This may follow spec, but is less common than using scaled data. ")
                else:
                    print("... Bounding box appears to be invalid.")
                    logging.info("Bounding box appears to be invalid.")
                    
            else:
                print("... printing bad indices to log: " + self.args.log)
                for i in bad_indices[0]:
                    logging.info("Point outside header bounding box: %i" % i)
            self.errors += 1
        else:
            print("... passed.")
        self.tests += 1
dataset/ETHPy150Open grantbrown/laspy/laspy/tools/lasvalidate.py/validate.test1/swapped operands of `<`