def test_scan_angle_rank(self):
        """Writing and testing scan angle rank"""
        ar1 = [1-i for i in self.FileObject.scan_angle_rank]
        ar1 = [max(0, x) for x in ar1]
        self.FileObject.scan_angle_rank = ar1
        ar2 = self.FileObject.get_scan_angle_rank()
        self.assertTrue((ar1 == list(ar2)))
dataset/ETHPy150Open grantbrown/laspy/laspytest/test_laspy.py/LasWriterTestCase.test_scan_angle_rank/swapped operands of `-`