[Paraview] OpenDataFile doesn't work in RC2

Gena Bug archaerolog at mail.ru
Fri Nov 4 11:40:57 EDT 2011


Hello!

I tried to open a file from python shell in 3.12.0RC2 and got this message:
vtr = OpenDataFile('tmp.vtr')
Traceback (most recent call last):
  File "<console>", line 1, in <module>
  File "/home/gennadiy/ParaView-3.12.0-RC2-Linux-x86_64/lib/paraview-3.12/site-
packages/paraview/simple.py", line 136, in OpenDataFile
    reader = globals()[xml_name](FileName=filename, **extraArgs)
KeyError: 'XMLRectilinearGridReader'

The more explicit expression works fine:
vtr = XMLRectilinearGridReader(FileName = 'tmp.vtr')

In 3.10.1 it works both methods works as expected.

-----|-
Gena.


More information about the ParaView mailing list