kopia lustrzana https://github.com/OpenDroneMap/ODM
Add check for bad index name
rodzic
cc1c9a06c4
commit
5d998a3ac6
|
@ -17,6 +17,7 @@ try:
|
|||
typ = sys.argv[2]
|
||||
(fileRoot, fileExt) = os.path.splitext(file)
|
||||
outFileName = fileRoot + "_" + typ + fileExt
|
||||
isinstance(typ, ['vari', 'tgi', 'ngrdi'])
|
||||
except (TypeError, IndexError, NameError):
|
||||
print bcolors.FAIL + 'Arguments messed up. Check arguments order and index name' + bcolors.ENDC
|
||||
print 'Usage: ./vegind.py orto index'
|
||||
|
|
Ładowanie…
Reference in New Issue