View Issue Details Jump to Notes ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0014483ParaView(No Category)public2013-12-20 11:422015-01-11 08:21
ReporterUtkarsh Ayachit 
Assigned ToUtkarsh Ayachit 
PrioritynormalSeverityminorReproducibilityhave not tried
StatusclosedResolutionfixed 
PlatformOSOS Version
Product Version 
Target Version4.1Fixed in Version4.1 
Summary0014483: FindData failes on certain queries
DescriptionTry 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
TagsNo tags attached.
ProjectTBD
Topic Name14483_fix_find_data
Typeincorrect functionality
Attached Files

 Relationships
has duplicate 0013040closed Find Data: in1d/contains does not work with any data array except "id" 

  Notes
(0032043)
Utkarsh Ayachit (administrator)
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 (administrator)
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 (manager)
2013-12-24 16:23

Doesn't seem to work parallel server. I asked Utkarsh for feedback.
(0032108)
Utkarsh Ayachit (administrator)
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 (manager)
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 (manager)
2014-02-26 22:26

Works on a nightly download from Kitware on my Mac. I will try Linux next.
(0032452)
Alan Scott (manager)
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.

 Issue History
Date Modified Username Field Change
2013-12-20 11:42 Utkarsh Ayachit New Issue
2013-12-20 11:42 Utkarsh Ayachit Assigned To => Utkarsh Ayachit
2013-12-20 11:42 Utkarsh Ayachit Target Version => 4.1
2013-12-20 15:19 Utkarsh Ayachit Topic Name => 14483_fix_find_data
2013-12-20 15:19 Utkarsh Ayachit Note Added: 0032043
2013-12-20 15:19 Utkarsh Ayachit Status backlog => gatekeeper review
2013-12-20 15:19 Utkarsh Ayachit Fixed in Version => git-next
2013-12-20 15:19 Utkarsh Ayachit Resolution open => fixed
2013-12-22 11:12 Utkarsh Ayachit Fixed in Version git-next => git-master
2013-12-22 11:12 Utkarsh Ayachit Status gatekeeper review => customer review
2013-12-22 11:12 Utkarsh Ayachit Note Added: 0032045
2013-12-24 16:23 Alan Scott Note Added: 0032052
2014-01-02 11:18 Utkarsh Ayachit Note Added: 0032108
2014-01-11 08:39 Utkarsh Ayachit Fixed in Version git-master => 4.1
2014-01-16 13:44 Utkarsh Ayachit Relationship added has duplicate 0013040
2014-02-05 16:56 Alan Scott Note Added: 0032291
2014-02-26 22:26 Alan Scott Note Added: 0032419
2014-03-03 17:46 Alan Scott Note Added: 0032452
2014-03-03 17:46 Alan Scott Status customer review => closed
2015-01-11 08:21 Utkarsh Ayachit Source_changeset_attached => ParaView master ad060cd9
2015-01-11 08:21 Utkarsh Ayachit Source_changeset_attached => ParaView master bc8a07cf


Copyright © 2000 - 2018 MantisBT Team