kopia lustrzana https://github.com/OpenDroneMap/ODM
Fix typos (#1497)
* Fix typos Found via `codespell -q 3 -L lod,ned,nnumber` * Fix typo in file name referencepull/1498/head
rodzic
d21c5baf64
commit
1bec793f9d
|
@ -17,7 +17,7 @@ except ImportError:
|
||||||
run `sudo apt-get install libgdal-dev` \
|
run `sudo apt-get install libgdal-dev` \
|
||||||
# Check Gdal version with \
|
# Check Gdal version with \
|
||||||
gdal-config --version \
|
gdal-config --version \
|
||||||
#install correspondig gdal version with pip : \
|
#install corresponding gdal version with pip : \
|
||||||
pip3 install GDAL==2.4.0")
|
pip3 install GDAL==2.4.0")
|
||||||
|
|
||||||
|
|
||||||
|
@ -50,7 +50,7 @@ a Geotif with NDVI, NDRE and GNDVI agricultural indices')
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
|
||||||
# Supress/hide warning when dividing by zero
|
# Suppress/hide warning when dividing by zero
|
||||||
numpy.seterr(divide='ignore', invalid='ignore')
|
numpy.seterr(divide='ignore', invalid='ignore')
|
||||||
|
|
||||||
rootdir = os.path.dirname(os.path.abspath(__file__))
|
rootdir = os.path.dirname(os.path.abspath(__file__))
|
||||||
|
|
|
@ -11,7 +11,7 @@ except ImportError:
|
||||||
run `sudo apt-get install libgdal-dev` \
|
run `sudo apt-get install libgdal-dev` \
|
||||||
# Check Gdal version with \
|
# Check Gdal version with \
|
||||||
gdal-config --version \
|
gdal-config --version \
|
||||||
#install correspondig gdal version with pip : \
|
#install corresponding gdal version with pip : \
|
||||||
pip3 install GDAL==2.4.0")
|
pip3 install GDAL==2.4.0")
|
||||||
|
|
||||||
def parse_args():
|
def parse_args():
|
||||||
|
|
|
@ -307,7 +307,7 @@ def config(argv=None, parser=None):
|
||||||
default=3,
|
default=3,
|
||||||
type=float,
|
type=float,
|
||||||
help=('Automatically crop image outputs by creating a smooth buffer '
|
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. '
|
'Use 0 to disable cropping. '
|
||||||
'Default: %(default)s'))
|
'Default: %(default)s'))
|
||||||
|
|
||||||
|
|
|
@ -96,7 +96,7 @@ class Cropper:
|
||||||
convexhull = geomcol.ConvexHull()
|
convexhull = geomcol.ConvexHull()
|
||||||
|
|
||||||
# If buffer distance is specified
|
# 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
|
# N + 3 and then that buffer expanded by 3
|
||||||
# so that we get smooth corners. \m/
|
# so that we get smooth corners. \m/
|
||||||
BUFFER_SMOOTH_DISTANCE = 3
|
BUFFER_SMOOTH_DISTANCE = 3
|
||||||
|
@ -185,7 +185,7 @@ class Cropper:
|
||||||
convexhull = geomcol.ConvexHull()
|
convexhull = geomcol.ConvexHull()
|
||||||
|
|
||||||
# If buffer distance is specified
|
# 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
|
# N + 3 and then that buffer expanded by 3
|
||||||
# so that we get smooth corners. \m/
|
# so that we get smooth corners. \m/
|
||||||
BUFFER_SMOOTH_DISTANCE = 3
|
BUFFER_SMOOTH_DISTANCE = 3
|
||||||
|
|
|
@ -18,7 +18,7 @@ class TestCamera(unittest.TestCase):
|
||||||
camera_id = list(c.keys())[0]
|
camera_id = list(c.keys())[0]
|
||||||
self.assertTrue('v2 ' not in camera_id)
|
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.assertRaises(ValueError, camera.get_cameras_from_opensfm, 'tests/assets/gcp_extras.txt')
|
||||||
self.assertFalse('k1_prior' in c[camera_id])
|
self.assertFalse('k1_prior' in c[camera_id])
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue