Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
def test_merged_arrays(self):
"""Can we load data from a list of arrays to PDAL"""
if Version(pdal.info.version) < Version('1.8'):
return True
data = np.load(os.path.join(DATADIRECTORY, 'test3d.npy'))
arrays = [data, data, data]
json = self.fetch_json('chip.json')
chip =u"""{
"pipeline":[
{
"type":"filters.range",
"limits":"Intensity[100:300)"
}
]
}"""
p = pdal.Pipeline(chip, arrays)