Find Data "is one of" queries fail
This issue was created automatically from an original Mantis Issue. Further discussion may take place here.
Either the Find Data dialog constructs a bad query or the query evaluation's Python implementation has a bug. Specifically, searching for cells where a variable obtains one of several values is broken.
To reproduce:
- Open can.ex2.
- Press Find Data toolbar button
- Select "Find: Cell" as the field type.
- Choose "Global ID" and "is one of" for the query clause. Enter "3000, 3050, 3150" in the clause's arguments.
- Click "Run Query". You will receive the following error:
Traceback (most recent call last): File "", line 5, in File "...ParaView/trunk/lib/site-packages/paraview/extract_selection.py", line 147, in Exec ds = ExecData(self, iterCD.GetCurrentDataObject(), selection) File "...ParaView/trunk/lib/site-packages/paraview/extract_selection.py", line 122, in ExecData mask = eval(selection_node.GetQueryString(), globals(), new_locals) File "", line 1, in File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/arraysetops.py", line 325, in in1d ar1, rev_idx = np.unique(ar1, return_inverse=True) File "/System/Library/Frameworks/Python.framework/Versions/2.7/Extras/lib/python/numpy/lib/arraysetops.py", line 179, in unique flag = np.concatenate(([True], aux[1:] != aux[:-1])) ValueError: arrays must have same number of dimensions