2 Dec 19:32
Re: [mv2] Object editor fails for some modules
From: Prabhu Ramachandran <prabhu@...>
Subject: Re: [mv2] Object editor fails for some modules
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-12-02 18:32:09 GMT
Subject: Re: [mv2] Object editor fails for some modules
Newsgroups: gmane.comp.python.enthought.devel
Date: 2008-12-02 18:32:09 GMT
B. P. Thrane wrote: >> This is very strange since the warnings are explicitly disabled for this >> operation. Anyway, could you please try the following code: >> >> $ cd enthought/mayavi/tests >> $ ipython >> >> from enthought.tvtk.api import tvtk >> r = tvtk.XMLUnstructuredGridReader(file_name='data/pyramid_ug.vtu') >> r.update() >> ug = r.output >> w = tvtk.DataSetWriter(write_to_output_string=1) >> w.set_input(ug) >> w.update() >> s = w.output_string >> print s >> r = tvtk.DataSetReader(read_from_input_string=1, input_string=s) >> r.update() >> print r.output >> >> It seems like you end up getting a None at the end. You might get some >> warnings in between but ignore them for now. Could you tell me if this >> works at all? Does "print s" print anything useful? >> >> > Here is the output: > In [9]: print s It looks like this does work! Very weird. Would you mind helping resolve this off-list with a few simple print statements to help?(Continue reading)
RSS Feed