Merge branch 'master' of http://git.normalized.xyz/Florent/LD2DAPs
This commit is contained in:
commit
992f912708
@ -69,15 +69,18 @@ def bulk_load(path, name=None, filter_treshold=.1, clip_treshold=.5, dtype=None)
|
|||||||
for a in attributes:
|
for a in attributes:
|
||||||
data[a] = list()
|
data[a] = list()
|
||||||
|
|
||||||
|
paths = [path] if isinstance(path, str) else path
|
||||||
|
|
||||||
print('Load data...')
|
print('Load data...')
|
||||||
for f in find_las(path):
|
for path in paths:
|
||||||
print('{}: '.format(f), end='')
|
for f in find_las(path):
|
||||||
infile = laspy.file.File(f)
|
print('{}: '.format(f), end='')
|
||||||
for i, a in enumerate(attributes):
|
infile = laspy.file.File(f)
|
||||||
print('\r {}: [{:3d}%]'.format(f, int(i/len(attributes) * 100)), end='')
|
for i, a in enumerate(attributes):
|
||||||
data[a].extend(getattr(infile, a))
|
print('\r {}: [{:3d}%]'.format(f, int(i/len(attributes) * 100)), end='')
|
||||||
infile.close()
|
data[a].extend(getattr(infile, a))
|
||||||
print('\r {}: [Done]'.format(f))
|
infile.close()
|
||||||
|
print('\r {}: [Done]'.format(f))
|
||||||
|
|
||||||
|
|
||||||
print('Create matrices...', end='')
|
print('Create matrices...', end='')
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user