MantisBT - ParaView
View Issue Details
0014483ParaView(No Category)public2013-12-20 11:422015-01-11 08:21
Utkarsh Ayachit 
Utkarsh Ayachit 
normalminorhave not tried
closedfixed 
 
4.14.1 
TBD
14483_fix_find_data
incorrect functionality
0014483: FindData failes on certain queries
Try this:

+ open can.ex2, load all variables, hit apply
+ In Find Data dialog, select Cells, GlobalElementId, "is one of", 1,2,3 . It fails with errors:

Traceback (most recent call last):
  File "<string>", line 4, in <module>
  File "/home/utkarsh/Kitware/ParaView3/ParaViewBin/lib/site-packages/paraview/extract_selection.py", line 145, in Exec
    ds = ExecData(self, iterCD.GetCurrentDataObject(), selection)
  File "/home/utkarsh/Kitware/ParaView3/ParaViewBin/lib/site-packages/paraview/extract_selection.py", line 120, in ExecData
    mask = eval(selection_node.GetQueryString(), globals(), new_locals)
  File "<string>", line 1, in <module>
  File "/usr/lib/python2.7/dist-packages/numpy/lib/arraysetops.py", line 328, in in1d
    ar1, rev_idx = np.unique(ar1, return_inverse=True)
  File "/usr/lib/python2.7/dist-packages/numpy/lib/arraysetops.py", line 182, in unique
    flag = np.concatenate(([True], aux[1:] != aux[:-1]))
ValueError: arrays must have same number of dimensions
No tags attached.
has duplicate 0013040closed  Find Data: in1d/contains does not work with any data array except "id" 
Issue History
2013-12-20 11:42Utkarsh AyachitNew Issue
2013-12-20 11:42Utkarsh AyachitAssigned To => Utkarsh Ayachit
2013-12-20 11:42Utkarsh AyachitTarget Version => 4.1
2013-12-20 15:19Utkarsh AyachitTopic Name => 14483_fix_find_data
2013-12-20 15:19Utkarsh AyachitNote Added: 0032043
2013-12-20 15:19Utkarsh AyachitStatusbacklog => gatekeeper review
2013-12-20 15:19Utkarsh AyachitFixed in Version => git-next
2013-12-20 15:19Utkarsh AyachitResolutionopen => fixed
2013-12-22 11:12Utkarsh AyachitFixed in Versiongit-next => git-master
2013-12-22 11:12Utkarsh AyachitStatusgatekeeper review => customer review
2013-12-22 11:12Utkarsh AyachitNote Added: 0032045
2013-12-24 16:23Alan ScottNote Added: 0032052
2014-01-02 11:18Utkarsh AyachitNote Added: 0032108
2014-01-11 08:39Utkarsh AyachitFixed in Versiongit-master => 4.1
2014-01-16 13:44Utkarsh AyachitRelationship addedhas duplicate 0013040
2014-02-05 16:56Alan ScottNote Added: 0032291
2014-02-26 22:26Alan ScottNote Added: 0032419
2014-03-03 17:46Alan ScottNote Added: 0032452
2014-03-03 17:46Alan ScottStatuscustomer review => closed
2015-01-11 08:21Utkarsh AyachitSource_changeset_attached => ParaView master ad060cd9
2015-01-11 08:21Utkarsh AyachitSource_changeset_attached => ParaView master bc8a07cf

Notes
(0032043)
Utkarsh Ayachit   
2013-12-20 15:19   
commit bc8a07cf9d15a6a6d8fa02f7009c8cdc81401a47
Author: Utkarsh Ayachit <utkarsh.ayachit@kitware.com>
Date: Fri Dec 20 15:18:04 2013 -0500

    BUG 0014483. Fix issues with FindData.
    
    FindData failed to on "is one of" queries when a data array was used instead of
    the IDS. This hack overcomes the problem for now by adopting a potentially
    slower route.
    
    Change-Id: Ifd07cf2d75a87dff4b7fb42cd79aea11dc9d40d1
(0032045)
Utkarsh Ayachit   
2013-12-22 11:12   
Topics merged into master:
        0014214_fix_python_trace_issues
        14483_fix_find_data
        fix-warnings
        pvweb-doc-grammar-fix
        pvweb-ipython-integration
(VTK) vtk-master
(0032052)
Alan Scott   
2013-12-24 16:23   
Doesn't seem to work parallel server. I asked Utkarsh for feedback.
(0032108)
Utkarsh Ayachit   
2014-01-02 11:18   
Alan, I just verified with 8 pvservers. It does indeed work for me. Remember this needs numpy on the server side to work. Can you try with just 1 pvserver to see if it works at all for you?
(0032291)
Alan Scott   
2014-02-05 16:56   
Happens with only one pvservers. I "think" I have numpy working properly server side. Is there a way to check?
(0032419)
Alan Scott   
2014-02-26 22:26   
Works on a nightly download from Kitware on my Mac. I will try Linux next.
(0032452)
Alan Scott   
2014-03-03 17:46   
Found. I didn't have numpy properly installed into the Python directories on the server side. I did so, and now it works.

I talked to Kitware about getting some indication of numpy is on the server side, maybe putting in Help. Wrote up bug 14614.

Tested Linux, remote server, master.