remove unnecessary os.path.relpath calls

pull/1283/head
Piero Toffanin 2021-05-23 11:00:48 -04:00
rodzic ec50ca9c49
commit d40dd396ff
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -31,7 +31,7 @@ def classify(lasFile, scalar, slope, threshold, window, verbose=False):
except:
log.ODM_WARNING("Error creating classified file %s" % lasFile)
log.ODM_INFO('Created %s in %s' % (os.path.relpath(lasFile), datetime.now() - start))
log.ODM_INFO('Created %s in %s' % (lasFile, datetime.now() - start))
return lasFile
def rectify(lasFile, debug=False, reclassify_threshold=5, min_area=750, min_points=500):
@ -71,7 +71,7 @@ def rectify(lasFile, debug=False, reclassify_threshold=5, min_area=750, min_poin
except Exception as e:
raise Exception("Error rectifying ground in file %s: %s" % (lasFile, str(e)))
log.ODM_INFO('Created %s in %s' % (os.path.relpath(lasFile), datetime.now() - start))
log.ODM_INFO('Created %s in %s' % (lasFile, datetime.now() - start))
return lasFile
error = None
@ -332,6 +332,6 @@ def median_smoothing(geotiff_path, output_path, smoothing_iterations=1):
with rasterio.open(output_path, 'w', **img.profile) as imgout:
imgout.write(arr, 1)
log.ODM_INFO('Completed smoothing to create %s in %s' % (os.path.relpath(output_path), datetime.now() - start))
log.ODM_INFO('Completed smoothing to create %s in %s' % (output_path, datetime.now() - start))
return output_path