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_read_arrays(self):
"""Can we read and filter data from a list of arrays to PDAL"""
if Version(pdal.info.version) < Version('1.8'):
return True
# just some dummy data
x_vals = [1.0, 2.0, 3.0, 4.0, 5.0]
y_vals = [6.0, 7.0, 8.0, 9.0, 10.0]
z_vals = [1.5, 3.5, 5.5, 7.5, 9.5]
test_data = np.array(
[(x, y, z) for x, y, z in zip(x_vals, y_vals, z_vals)],
dtype=[('X', np.float), ('Y', np.float), ('Z', np.float)]
)
pipeline = """
{
"pipeline": [
{
"type":"filters.range",