From 1bec793f9d29ff8e93dd12e599c74ab4a975b80e Mon Sep 17 00:00:00 2001 From: luzpaz Date: Sun, 10 Jul 2022 15:02:10 -0400 Subject: [PATCH] Fix typos (#1497) * Fix typos Found via `codespell -q 3 -L lod,ned,nnumber` * Fix typo in file name reference --- contrib/ndvi/agricultural_indices.py | 4 ++-- contrib/ndvi/rename_sentera_agx710_multispectral_tif.py | 2 +- opendm/config.py | 2 +- opendm/cropper.py | 4 ++-- tests/test_camera.py | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/contrib/ndvi/agricultural_indices.py b/contrib/ndvi/agricultural_indices.py index 60515cac..91c6c636 100755 --- a/contrib/ndvi/agricultural_indices.py +++ b/contrib/ndvi/agricultural_indices.py @@ -17,7 +17,7 @@ except ImportError: run `sudo apt-get install libgdal-dev` \ # Check Gdal version with \ gdal-config --version \ - #install correspondig gdal version with pip : \ + #install corresponding gdal version with pip : \ pip3 install GDAL==2.4.0") @@ -50,7 +50,7 @@ a Geotif with NDVI, NDRE and GNDVI agricultural indices') if __name__ == "__main__": - # Supress/hide warning when dividing by zero + # Suppress/hide warning when dividing by zero numpy.seterr(divide='ignore', invalid='ignore') rootdir = os.path.dirname(os.path.abspath(__file__)) diff --git a/contrib/ndvi/rename_sentera_agx710_multispectral_tif.py b/contrib/ndvi/rename_sentera_agx710_multispectral_tif.py index d2077d16..d9415b17 100644 --- a/contrib/ndvi/rename_sentera_agx710_multispectral_tif.py +++ b/contrib/ndvi/rename_sentera_agx710_multispectral_tif.py @@ -11,7 +11,7 @@ except ImportError: run `sudo apt-get install libgdal-dev` \ # Check Gdal version with \ gdal-config --version \ - #install correspondig gdal version with pip : \ + #install corresponding gdal version with pip : \ pip3 install GDAL==2.4.0") def parse_args(): diff --git a/opendm/config.py b/opendm/config.py index 3930e3e3..edef6f82 100755 --- a/opendm/config.py +++ b/opendm/config.py @@ -307,7 +307,7 @@ def config(argv=None, parser=None): default=3, type=float, help=('Automatically crop image outputs by creating a smooth buffer ' - 'around the dataset boundaries, shrinked by N meters. ' + 'around the dataset boundaries, shrunk by N meters. ' 'Use 0 to disable cropping. ' 'Default: %(default)s')) diff --git a/opendm/cropper.py b/opendm/cropper.py index a6ba7532..54ccb9ba 100644 --- a/opendm/cropper.py +++ b/opendm/cropper.py @@ -96,7 +96,7 @@ class Cropper: convexhull = geomcol.ConvexHull() # If buffer distance is specified - # Create two buffers, one shrinked by + # Create two buffers, one shrunk by # N + 3 and then that buffer expanded by 3 # so that we get smooth corners. \m/ BUFFER_SMOOTH_DISTANCE = 3 @@ -185,7 +185,7 @@ class Cropper: convexhull = geomcol.ConvexHull() # If buffer distance is specified - # Create two buffers, one shrinked by + # Create two buffers, one shrunk by # N + 3 and then that buffer expanded by 3 # so that we get smooth corners. \m/ BUFFER_SMOOTH_DISTANCE = 3 diff --git a/tests/test_camera.py b/tests/test_camera.py index 8c1b539b..4a929908 100644 --- a/tests/test_camera.py +++ b/tests/test_camera.py @@ -18,7 +18,7 @@ class TestCamera(unittest.TestCase): camera_id = list(c.keys())[0] self.assertTrue('v2 ' not in camera_id) - self.assertRaises(RuntimeError, camera.get_cameras_from_opensfm, 'tests/assets/nonexistant.json') + self.assertRaises(RuntimeError, camera.get_cameras_from_opensfm, 'tests/assets/nonexistent.json') self.assertRaises(ValueError, camera.get_cameras_from_opensfm, 'tests/assets/gcp_extras.txt') self.assertFalse('k1_prior' in c[camera_id])