Re: [Paraview] default_servers.pvsc question

2015-04-12 Thread Burlen Loring

Hi Utkarsh,

I think environment variables are kind of a band aid around a larger 
issue. In addition to leveraging the user's local environment, there's 
also no way to get information from the server side environment. for 
example list of account numbers a user can charge jobs to, or a list of 
active queues. One thing I have been thinking about is  rather than just 
reading pvsc from an xml file, paraview could call a script to get the 
pvsc xml. This script could query the user's local/remote environment 
and generate the xml. A long time ago we had talked about a python based 
solution. What do you think?


Burlen

On 4/12/2015 11:31 AM, Utkarsh Ayachit wrote:

Rick,

Alas no, this isn't currently supported. But should be fairly
straightforward to add. I've reported a bug:
http://www.paraview.org/Bug/view.php?id=15421

Utkarsh

On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY
ARL (US) richard.c.angelini@mail.mil wrote:

Question about the default_servers.pvsc file…..

I have this in my host profile:

   Server name=“My System resource=csrc://127.0.0.1
 CommandStartup
   Options
Option name=SSHLOC label=Local SSH Command save=true
  File default=/usr/local/bin/ssh/
/Option

So, when the GUI pops up, the user has an opportunity to change the path to
ssh.   But, rather than hard-coding the default value, or presenting blank
field and have the user put in the correct path, is it possible to query the
user’s environment and find `which ssh` and substitute in that value??





Rick Angelini
USArmy Research Laboratory
CISD/HPC Architectures Team
Phone:  410-278-6266

___
Powered by www.kitware.com

Visit other Kitware open-source projects at
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at:
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Error when connecting to pvserver (pv 4.3.1)

2015-04-12 Thread Utkarsh Ayachit
Are the client and server created using the similar build flags? One
guess would be that you don't have MPI enabled on the server, but you
do have it enabled on the client build. Is that correct?

Utkarsh

On Sat, Apr 11, 2015 at 12:45 PM, Schlottke, Michael
m.schlot...@aia.rwth-aachen.de wrote:
 Hi,

 I just installed PV 4.3.1 from source as I need to compile some custom
 plugins. Using the GUI client in a standalone fashion is no problem and
 everything works as expected. However, I’ve had difficulties when trying to
 connect to a pvserver instance.

 The server dies with the following error messages:
 ###
 Waiting for client...
 Connection URL: cs://aia257:1
 Accepting connection(s): aia257:1
 Client connected.
 Warning: In
 /home/mic/.pool/.src/ParaView-v4.3.1-source/ParaViewCore/ClientServerCore/Rendering/vtkPVClientServerSynchronizedRenderers.cxx,
 line 170
 vtkPVClientServerSynchronizedRenderers (0x1dfa530): Could not create the
 compressor by name .

 ERROR: In
 /home/mic/.pool/.src/ParaView-v4.3.1-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx,
 line 878
 vtkSocketCommunicator (0xbe1f50): Tag mismatch: got 10, expecting 1.

 Exiting…
 ###

 While the client spills out a ton of messages like the following and finally
 dies with “xcb_io.c…” error:

 ###
 X Error: GLXBadContextTag 152
   Extension:145 (Uknown extension)
   Minor opcode: 115 (Unknown request)
   Resource id:  0x1
 X Error: GLXBadContextTag 152
   Extension:145 (Uknown extension)
   Minor opcode: 1 (Unknown request)
   Resource id:  0x1
 X Error: GLXBadContextTag 152
   Extension:145 (Uknown extension)
   Minor opcode: 145 (Unknown request)
   Resource id:  0x1
 paraview: xcb_io.c:549: _XRead: Assertion `dpy-xcb-reply_data != ((void
 *)0)' failed.
 ###

 Any ideas what I’m doing wrong? This happens directly on attempting to
 connect. I’ve added the configure command I used below.

 Thanks a lot in advance,

 Michael


 P.S:

 Used command to configure ParaView:
   CC=gcc CXX=g++ cmake $PV_SRC \
 -DBUILD_DOCUMENTATION:BOOL=ON \
 -DBUILD_SHARED_LIBS:BOOL=ON \
 -DCMAKE_BUILD_TYPE:STRING=Release \
 -DCMAKE_INSTALL_PREFIX:PATH=$PREFIX \
 -DPARAVIEW_ENABLE_PYTHON:BOOL=ON \
 -DPARAVIEW_INSTALL_DEVELOPMENT_FILES:BOOL=ON \
 -DPARAVIEW_USE_MPI:BOOL=ON \
 -DPYTHON_LIBRARY:FILEPATH=$PYTHON27/lib/libpython2.7.so \
 -DPYTHON_INCLUDE_DIR:PATH=$PYTHON27/include/python2.7


 --
 Michael Schlottke

 Chair of Fluid Mechanics and Institute of Aerodynamics
 RWTH Aachen University
 Wüllnerstraße 5a
 52062 Aachen
 Germany

 Phone: +49 (241) 80 95188
 Fax: +49 (241) 80 92257
 Mail: m.schlot...@aia.rwth-aachen.de
 Web: http://www.aia.rwth-aachen.de


 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] default_servers.pvsc question

2015-04-12 Thread Utkarsh Ayachit
Rick,

Alas no, this isn't currently supported. But should be fairly
straightforward to add. I've reported a bug:
http://www.paraview.org/Bug/view.php?id=15421

Utkarsh

On Fri, Apr 10, 2015 at 4:09 PM, Angelini, Richard C (Rick) CIV USARMY
ARL (US) richard.c.angelini@mail.mil wrote:
 Question about the default_servers.pvsc file…..

 I have this in my host profile:

   Server name=“My System resource=csrc://127.0.0.1
 CommandStartup
   Options
 Option name=SSHLOC label=Local SSH Command save=true
  File default=/usr/local/bin/ssh/
 /Option

 So, when the GUI pops up, the user has an opportunity to change the path to
 ssh.   But, rather than hard-coding the default value, or presenting blank
 field and have the user put in the correct path, is it possible to query the
 user’s environment and find `which ssh` and substitute in that value??




 
 Rick Angelini
 USArmy Research Laboratory
 CISD/HPC Architectures Team
 Phone:  410-278-6266

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: http://markmail.org/search/?q=ParaView

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Everything on graph disappears after choose 'volume' representation

2015-04-12 Thread Utkarsh Ayachit
Attached is a XML that you can load as a plugin using the Tools |
Plugin Manager. This will add a new Import CSV As Volume source
under the Sources menu. On creating this new source, you'll be able
to select the CSV file and specify the relevant meta-data as
properties. I've setup the defaults to match the file you sent. The
Python code assumes that the CSV file has data in the same order as
VTK expects i.e. X varying first, then Y and then Z. Hence the image
dimensions are flipped.

Also, this is designed to work only for a single process mode, it'll
need some work if it's to work in parallel too.

Utkarsh



On Fri, Apr 10, 2015 at 3:35 PM, Utkarsh Ayachit
utkarsh.ayac...@kitware.com wrote:
 You cannot volume render data coming in from a CSV file. If you want
 to sned me a sample CSV, I can send you a Programmable Source code
 than will produce a volume renderable dataset.


 On Fri, Apr 10, 2015 at 12:21 PM, yufei shen yzs...@psu.edu wrote:
 Good afternoon:

 I am just beginning to use Paraview, and I'm using it to plot a 3D current
 scalar field, with x,y,z being the coordinates of a point in space, while
 the forth column value represents the intensity of current passing through
 that point. My input file is .csv.

 After I have tetrahedralized my points, the figure show up in the plotting
 window perfectly with surface, point or any other representations except
 VOLUME. I can adjust color together with alpha values, however, as soon as I
 switch to 'volume', everything just disappears. I've also tried the same
 thing on all platforms (Mac, linux, Windows), but the problem is not solved.

 I wonder what's causing this problem? Should I used a different input file
 format other than .csv? It seems what I am doing is really simple compared
 with paraview's capability. I have also checked the archives but could not
 find any solution to this...

 I really appreciate your help!

 Best Regards
 Yufei

 ___
 Powered by www.kitware.com

 Visit other Kitware open-source projects at
 http://www.kitware.com/opensource/opensource.html

 Please keep messages on-topic and check the ParaView Wiki at:
 http://paraview.org/Wiki/ParaView

 Search the list archives at: http://markmail.org/search/?q=ParaView

 Follow this link to subscribe/unsubscribe:
 http://public.kitware.com/mailman/listinfo/paraview

ServerManagerConfiguration
  ProxyGroup name=sources
SourceProxy name=OpenCSVAsVolume class=vtkPythonProgrammableFilter label=Import CSV As Volume
  Documentation 
Import a CSV as a 3D volume.
/Documentation

  StringVectorProperty
name=FileName
label=FileName
initial_string=FileName
command=SetParameter
animateable=1
default_values=sample.csv
number_of_elements=1
FileListDomain name=files /
DocumentationSelect the CSV file to open./Documentation
  /StringVectorProperty

  IntVectorProperty
name=Dimensions
label=Dimensions
initial_string=Dimensions
command=SetParameter
animateable=1
default_values=100 100 18
number_of_elements=3
Documentation
Note that the data in the CSV file must be order expected by VTK i.e. X changes first,
then Y and finally Z.
/Documentation
  /IntVectorProperty

  IntVectorProperty
name=Spacing
label=Spacing
initial_string=Spacing
command=SetParameter
animateable=1
default_values=1 1 1
number_of_elements=3
Documentation/Documentation
  /IntVectorProperty

  StringVectorProperty
name=ActiveScalars
initial_string=ActiveScalars
command=SetParameter
animateable=1
default_values=current
number_of_elements=1
Documentation
Set the name of the array to set as the active scalars.
/Documentation
  /StringVectorProperty


  !-- Output data type: vtkImageData --
  IntVectorProperty command=SetOutputDataSetType
 default_values=6
 name=OutputDataSetType
 number_of_elements=1
 panel_visibility=never
DocumentationThe value of this property determines the dataset type
for the output of the programmable filter./Documentation
  /IntVectorProperty


  StringVectorProperty
name=Script
command=SetScript
number_of_elements=1
default_values=import numpy as np#xA;#xA;assert FileName#xA;data = np.genfromtxt(FileName,#xA;dtype=None,#xA;names=True,#xA;delimiter=',',#xA;autostrip=True)#xA;#xA;dims = Dimensions#xA;#xA;assert data.shape[0] == dims[0] * dims[1] * dims[2], quot;dimensions mismatchquot;#xA;#xA;output.SetExtent(0, dims[0]-1, 0, dims[1]-1, 0, dims[2] - 1)#xA;#xA;for name in data.dtype.names:#xA;array = data[name]#xA;