From cb6835d1bc5c92f4962fd6c771cf7acc990e70a5 Mon Sep 17 00:00:00 2001 From: luz paz Date: Sat, 8 Jan 2022 05:38:36 -0500 Subject: [PATCH] Fix various typos Found via `codespell -q 3 -L lod,ned,nnumber` --- configure.py | 2 +- contrib/blender/odm_video.py | 2 +- contrib/orthorectify/README.md | 2 +- contrib/orthorectify/orthorectify.py | 2 +- licenses/libx11_copyright.txt | 2 +- opendm/dem/commands.py | 2 +- opendm/dem/ground_rectification/partition/quad_partitions.py | 2 +- opendm/dem/pdal.py | 2 +- opendm/multispectral.py | 2 +- opendm/pseudogeo.py | 2 +- opendm/thermal_tools/dji_unpack.py | 2 +- opendm/tiles/gdal2tiles.py | 2 +- 12 files changed, 12 insertions(+), 12 deletions(-) diff --git a/configure.py b/configure.py index 55afb8ba..d3612812 100644 --- a/configure.py +++ b/configure.py @@ -3,7 +3,7 @@ if sys.platform != 'win32': print("This script is for Windows only! Use configure.sh instead.") exit(1) if sys.version_info.major != 3 or sys.version_info.minor != 8: - print("You neeed to use Python 3.8.x (due to the requirements.txt). You are using %s instead." % platform.python_version()) + print("You need to use Python 3.8.x (due to the requirements.txt). You are using %s instead." % platform.python_version()) exit(1) import argparse diff --git a/contrib/blender/odm_video.py b/contrib/blender/odm_video.py index 6faf8b15..ef58648e 100644 --- a/contrib/blender/odm_video.py +++ b/contrib/blender/odm_video.py @@ -103,7 +103,7 @@ def writeMetadata(filename, format3d): '--stereo='+format3d, filename, filename+'.injected']) - # check metadata injector was succesful + # check metadata injector was successful if os.path.exists(filename+'.injected'): os.remove(filename) os.rename(filename+'.injected', filename) diff --git a/contrib/orthorectify/README.md b/contrib/orthorectify/README.md index 5548652b..3a74c69c 100644 --- a/contrib/orthorectify/README.md +++ b/contrib/orthorectify/README.md @@ -50,7 +50,7 @@ optional arguments: image filenames to orthorectify. By default all images in a dataset are processed. Default: img_list.txt - --images IMAGES Comma-separeted list of filenames to + --images IMAGES Comma-separated list of filenames to rectify. Use as an alternative to --image- list. Default: process all images. ``` diff --git a/contrib/orthorectify/orthorectify.py b/contrib/orthorectify/orthorectify.py index 6180a8eb..7b488dd8 100755 --- a/contrib/orthorectify/orthorectify.py +++ b/contrib/orthorectify/orthorectify.py @@ -45,7 +45,7 @@ parser.add_argument('--image-list', parser.add_argument('--images', type=str, default="", - help="Comma-separeted list of filenames to rectify. Use as an alternative to --image-list. Default: process all images.") + help="Comma-separated list of filenames to rectify. Use as an alternative to --image-list. Default: process all images.") parser.add_argument('--threads', type=int, default=multiprocessing.cpu_count(), diff --git a/licenses/libx11_copyright.txt b/licenses/libx11_copyright.txt index 0d563ab1..7ca010b0 100644 --- a/licenses/libx11_copyright.txt +++ b/licenses/libx11_copyright.txt @@ -154,7 +154,7 @@ documentation for any purpose and without fee, provided that: all copies of this software and any modification thereof and in supporting documentation; 2. Any color-handling application which displays TekHVC color - cooordinates identifies these as TekHVC color coordinates in any + coordinates identifies these as TekHVC color coordinates in any interface that displays these coordinates and in any associated documentation; 3. The term "TekHVC" is always used, and is only used, in association diff --git a/opendm/dem/commands.py b/opendm/dem/commands.py index 37ed4456..152e84d5 100755 --- a/opendm/dem/commands.py +++ b/opendm/dem/commands.py @@ -39,7 +39,7 @@ def rectify(lasFile, debug=False, reclassify_threshold=5, min_area=750, min_poin try: # Currently, no Python 2 lib that supports reading and writing LAZ, so we will do it manually until ODM is migrated to Python 3 - # When migration is done, we can move to pylas and avoid using PDAL for convertion + # When migration is done, we can move to pylas and avoid using PDAL for conversion tempLasFile = os.path.join(os.path.dirname(lasFile), 'tmp.las') # Convert LAZ to LAS diff --git a/opendm/dem/ground_rectification/partition/quad_partitions.py b/opendm/dem/ground_rectification/partition/quad_partitions.py index bb6f19b8..f0cc71ab 100755 --- a/opendm/dem/ground_rectification/partition/quad_partitions.py +++ b/opendm/dem/ground_rectification/partition/quad_partitions.py @@ -5,7 +5,7 @@ from .partition_plan import PartitionPlan, Partition class QuadPartitions(PartitionPlan): """This partition plan starts with one big partition that includes the whole point cloud. It then divides it into four partitions, based on some criteria. - Each of these partitions are then divided into four other partitions and so on. The algorithm has two possible stopping criterias: + Each of these partitions are then divided into four other partitions and so on. The algorithm has two possible stopping criteria: if subdividing a partition would imply that one of the new partitions contains fewer that a given amount of points, or that one of the new partitions as an area smaller that the given size, then the partition is not divided.""" diff --git a/opendm/dem/pdal.py b/opendm/dem/pdal.py index d1cf1c38..fb3edf31 100644 --- a/opendm/dem/pdal.py +++ b/opendm/dem/pdal.py @@ -1,6 +1,6 @@ #!/usr/bin/env python ################################################################################ -# lidar2dems - utilties for creating DEMs from LiDAR data +# lidar2dems - utilities for creating DEMs from LiDAR data # # AUTHOR: Matthew Hanson, matt.a.hanson@gmail.com # diff --git a/opendm/multispectral.py b/opendm/multispectral.py index c77eb7bd..6a14c3b5 100644 --- a/opendm/multispectral.py +++ b/opendm/multispectral.py @@ -70,7 +70,7 @@ def dn_to_radiance(photo, image): R = np.repeat(R[:, :, np.newaxis], image.shape[2], axis=2) image *= R - # Floor any negative radiances to zero (can happend due to noise around blackLevel) + # Floor any negative radiances to zero (can happen due to noise around blackLevel) if dark_level is not None: image[image < 0] = 0 diff --git a/opendm/pseudogeo.py b/opendm/pseudogeo.py index 6701e69b..5d706fef 100644 --- a/opendm/pseudogeo.py +++ b/opendm/pseudogeo.py @@ -27,4 +27,4 @@ def add_pseudo_georeferencing(geotiff): dst_ds = None except Exception as e: - log.ODM_WARNING("Cannot add psuedo georeferencing to %s (%s), skipping..." % (geotiff, str(e))) \ No newline at end of file + log.ODM_WARNING("Cannot add pseudo georeferencing to %s (%s), skipping..." % (geotiff, str(e))) \ No newline at end of file diff --git a/opendm/thermal_tools/dji_unpack.py b/opendm/thermal_tools/dji_unpack.py index 7bdee266..4794ab41 100644 --- a/opendm/thermal_tools/dji_unpack.py +++ b/opendm/thermal_tools/dji_unpack.py @@ -11,7 +11,7 @@ def extract_temperatures_dji(photo, image, dataset_tree): The executable file is run and generates a 16 bit unsigned RAW image with Little Endian byte order. Link to DJI Forum post: https://forum.dji.com/forum.php?mod=redirect&goto=findpost&ptid=230321&pid=2389016 """ - # Harcoded metadata for mean of values + # Hardcoded metadata for mean of values # This is added to support the possibility of extracting RJPEG from DJI M2EA meta = { "Emissivity": 0.95, diff --git a/opendm/tiles/gdal2tiles.py b/opendm/tiles/gdal2tiles.py index 7ffe7f9a..82e32604 100644 --- a/opendm/tiles/gdal2tiles.py +++ b/opendm/tiles/gdal2tiles.py @@ -1405,7 +1405,7 @@ class GDAL2Tiles(object): # Not for 'raster' profile self.scaledquery = True # How big should be query window be for scaling down - # Later on reset according the chosen resampling algorightm + # Later on reset according the chosen resampling algorithm self.querysize = 4 * self.tilesize # Should we use Read on the input file for generating overview tiles?