1{
2  "pipeline":[
3    "@CMAKE_SOURCE_DIR@/test/data/autzen/autzen.las",
4    {
5      "type":"filters.python",
6      "module":"anything",
7      "function":"filter",
8      "source":"import numpy as np\n\ndef filter(ins,outs):\n\tcls = ins['Classification']\n\n\tkeep_classes = [1,2]\n\n\t# Use the first test for our base array.\n\tkeep = np.equal(cls, keep_classes[0])\n\n\t# For 1:n, test each predicate and join back\n\t# to our existing predicate array\n\tfor k in range(1,len(keep_classes)):\n\t\tt = np.equal(cls, keep_classes[k])\n\t\tkeep = keep + t\n\n\touts['Mask'] = keep\n\treturn True"
9    },
10    "@CMAKE_SOURCE_DIR@/test/temp/out2.las"
11  ]
12}
13