Hi,

I have the same error.
For myself, this message occurs when I read the geometry alone, without
the results file.
Nevertheless, I can display the geometry.
I guess it reports there is no results file in input.
It appeared with version 3.98.

There is no message if I read geometry + results file at the same time 

Best regards
Joƫlle




> Date: Thu, 14 Mar 2013 11:28:07 +0000
> From: Paul Edwards <[email protected]>
> Subject: Re: [Paraview] Reading PLOT3D into Paraview
> To: Nikolaos Beratlis <[email protected]>
> Cc: [email protected]
> Message-ID:
>       <cabworb8hgrayuorhda4cvpzyr8d2kfefqzzh0ukgauf8acz...@mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
> 
> Make sure you de-select "Binary" and select "Multigrid" (i.e. all
> checkboxes off except "multigrid")
> 
> Regards,
> Paul
> 
> On 13 March 2013 21:17, Nikolaos Beratlis <[email protected]> wrote:
> 
> > Hi,
> >
> > I have problems reading PLOT3D files into paraview. Here is a small test
> > file containing the grid:
> >
> > 1
> > 3 2 2
> > 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0 0.0 1.0 2.0
> > 0.0 0.0 0.0 1.0 1.0 1.0 0.0 0.0 0.0 1.0 1.0 1.0
> > 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0 0.0
> >
> > The grid is a 3D one, it has one block with size 3x2x2 and the format is
> > ASCII. I can read this file into Tecplot without any problem but when I try
> > to read it into Paraview 3.98 I get the following error:
> >
> > ERROR: In
> > /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-NoMPI/paraview/src/paraview/ParaViewCore/VTKExtensions/Default/vtkFileSeriesReader.cxx,
> > line 690
> >
> > vtkFileSeriesReader (0x11713e850): Inputs are not set.
> >
> > What is wrong, the file itself or the PLOT3D reader of Paraview?
> >
> > Thank you,
> >
> > Nikos
> >
> > _______________________________________________
> > 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
> >
> > Follow this link to subscribe/unsubscribe:
> > http://www.paraview.org/mailman/listinfo/paraview
> >
> >
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: 
> <http://www.paraview.org/pipermail/paraview/attachments/20130314/ea016c7b/attachment-0001.htm>
> 
> ------------------------------
> 
> Message: 3
> Date: Thu, 14 Mar 2013 12:20:49 GMT
> From: Anton Shterenlikht <[email protected]>
> Subject: [Paraview] help with pvpython commands
> To: [email protected]
> Message-ID:
>       <[email protected]>
> 
> I'm trying to follow this example:
> 
> Example 2
> 
> In the second example the python script reads a raw binary file with 
> 3Dimensional data and creates a contour at the values 0.1 and -0.1. A Colour 
> bar is also provided.
> 
> from paraview.servermanager import *
> Connect()
> reader=sources.ImageReader(FilePrefix="phi-120000")
> reader.DataByteOrder=1
> reader.DataExtent[1]=511
> reader.DataExtent[3]=1023
> reader.DataExtent[5]=511
> reader.DataScalarType=10
> view=CreateRenderView()
> view.Background=[0.3249412, 0.34902, 0.427451]
> rep=CreateRepresentation(reader,view)
> rep.Representation=3
> rep.ColorAttributeType=0
> cont1=filters.Contour(Input=reader)
> cont1.ComputeScalars=1
> cont1.ComputeNormals=0
> cont1.ContourValues=[-0.1,0.1]
> cont1.SelectInputScalars="ImageFile"
> rep2=CreateRepresentation(cont1,view)
> rep2.ColorArrayName="ImageFile"
> rep2.SelectionColor=[1,0,1]
> rep2.ColorAttributeType=0
> lt=rendering.PVLookupTable()
> lt.RGBPoints=[-0.1,0.1381,0.2411,0.7091,0.1,0.6728,0.1408,0.1266]
> lt.ColorSpace=3
> rep2.LookupTable=lt
> sb=rendering.ScalarBarWidgetRepresentation()
> sb.Position=[0.80,0.15]
> sb.Title="ImageFile"
> sb.Enabled=1
> sb.LookupTable=lt
> view.Representations.append(sb)
> view.StillRender()
> view.ResetCamera()
> view.StillRender()
> view.WriteImage("PHI-result.png","vtkPNGWriter")
> 
> from 
> http://www.hector.ac.uk/support/documentation/userguide/tools.php#paraview
> 
> Where and how can I get help on each of these functions?
> 
> I can do e.g. help(ImageReader) in pvpython, but
> that doesn't help much. I'm not even sure what's
> sources.ImageReader.
> 
> Where shall I start?
> 
> Thanks
> 
> Anton
> 
> 
> ------------------------------
> 
> Message: 4
> Date: Thu, 14 Mar 2013 15:28:50 GMT
> From: Anton Shterenlikht <[email protected]>
> Subject: [Paraview] TypeError: WriteImage() takes exactly 3 arguments
>       (1      given)
> To: [email protected]
> Message-ID:
>       <[email protected]>
> 
> I get this error:
> 
> >>> view.WriteImage("z.png")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 
> 331, in __ConvertArgumentsAndCall
>     retVal = func(*newArgs)
> TypeError: WriteImage() takes exactly 3 arguments (1 given)
> >>> 
> 
> The tutorial suggests that just the filename is enough:
> 
> http://paraview.org/Wiki/ParaView/Python_Scripting
> 
> Anyway, I can see in other examples that the second argument
> is the file format, e.g.:
> 
> view.WriteImage("z.png","vtkPNGWriter")
> 
> but this gives the same error:
> 
> >>> view.WriteImage("z.png","vtkPNGWriter")
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
>   File 
> "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 
> 331, in __ConvertArgumentsAndCall
>     retVal = func(*newArgs)
> TypeError: WriteImage() takes exactly 3 arguments (2 given)
> >>> 
> 
> I cannot find what the third argument must be.
> 
> Please help
> 
> Anton
> 
> 
> ------------------------------
> 
> Message: 5
> Date: Thu, 14 Mar 2013 15:49:00 GMT
> From: Anton Shterenlikht <[email protected]>
> Subject: [Paraview] SOLVED: TypeError: WriteImage() takes exactly 3
>       arguments (1 given)
> To: [email protected]
> Message-ID:
>       <[email protected]>
> 
>       From mexas Thu Mar 14 15:28:50 2013
>       To: [email protected]
>       Subject: TypeError: WriteImage() takes exactly 3 arguments (1 given)
>       Reply-To: [email protected]
> 
>       I get this error:
> 
>       >>> view.WriteImage("z.png")
>       Traceback (most recent call last):
>         File "<stdin>", line 1, in <module>
>         File 
> "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 
> 331, in __ConvertArgumentsAndCall
>           retVal = func(*newArgs)
>       TypeError: WriteImage() takes exactly 3 arguments (1 given)
>       >>> 
> 
>       The tutorial suggests that just the filename is enough:
> 
>       http://paraview.org/Wiki/ParaView/Python_Scripting
> 
>       Anyway, I can see in other examples that the second argument
>       is the file format, e.g.:
> 
>       view.WriteImage("z.png","vtkPNGWriter")
> 
>       but this gives the same error:
> 
>       >>> view.WriteImage("z.png","vtkPNGWriter")
>       Traceback (most recent call last):
>         File "<stdin>", line 1, in <module>
>         File 
> "/usr/local/lib/paraview-3.10/site-packages/paraview/servermanager.py", line 
> 331, in __ConvertArgumentsAndCall
>           retVal = func(*newArgs)
>       TypeError: WriteImage() takes exactly 3 arguments (2 given)
>       >>> 
> 
>       I cannot find what the third argument must be.
> 
>       Please help
> 
>       Anton
> 
> Answering my own question, it seems different
> help is provided in servermanager and in simple
> modules. If I load servermanager, I get:
> 
> >>> help (WriteImage)
> Traceback (most recent call last):
>   File "<stdin>", line 1, in <module>
> NameError: name 'WriteImage' is not defined
> >>> 
> 
> But if I load simple, I get:
> 
> >>> from paraview.simple import *
> paraview version 3.10.1, Date: 2011-01-28
> >>> help (WriteImage)
> Help on function WriteImage in module paraview.simple:
> 
> WriteImage(filename, view=None, **params)
>     Saves the given view (or the active one if none is given) as an
>     image. Optionally, you can specify the writer and the magnification
>     using the Writer and Magnification named arguments. For example:
>      WriteImage("foo.mypng", aview, Writer=vtkPNGWriter, Magnification=2)
>     If no writer is provided, the type is determined from the file extension.
>     Currently supported extensions are png, bmp, ppm, tif, tiff, jpg and jpeg.
>     The writer is a VTK class that is capable of writing images.
>     Magnification is used to determine the size of the written image. The size
>     is obtained by multiplying the size of the view with the magnification.
>     Rendering may be done using tiling to obtain the correct size without
>     resizing the view.
> 
> >>>
> 
> So I got it working now.
> 
> Anton
> 
> 
> ------------------------------
> 
> _______________________________________________
> 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
> 
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/mailman/listinfo/paraview
> 
> 
> End of ParaView Digest, Vol 107, Issue 34
> *****************************************


_______________________________________________
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview

Reply via email to