Hi Robert,I used the same command and getting the below error.
Warning:"traits.has_traits:DEPRECATED: traits.has_traits.wrapped_class, 'the 'implements' class advisor has been deprecated. Use the 'provides' class decorator."
followed by an import error.
I'm using Mayavi 4.4.3
Regards,
Madhu
On Monday, 23 November 2015 12:53:43 UTC+5:30, Robert Cimrman wrote:
Hi Madhu,
%run postproc.py cylinder.vtk"
should work, unless your mayavi is not 4.4, see [1].
Didn't you run postproc.py with the --colormap option? This option was added in
2015.3, so if you have an older sfepy version, you cannot use it.
r.
[1] https://github.com/sfepy/sfepy/issues/292
On 11/21/2015 05:48 PM, Madhu Mahadevappa wrote:
> Dear Robert,
> Now I'm getting an error while post processing. When I run "%run
> postproc.py cylinder.vtk" ,I'm getting following error.
> Kindly help me.
>
> TypeError Traceback (most recent call last)
> C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in
> <module>()
> 501
> 502 if __name__ == '__main__':
> --> 503 main()
>
> C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in main()
> 491 filenames = filenames[0]
> 492
> --> 493 view = view_file(filenames, filter_names, options)
> 494 if can_save:
> 495 view.save_image(options.filename)
>
> C:\Users\Madhu N.M\Downloads\sfepy-master\sfepy-master\postproc.py in
> view_file(filename, filter_names, options, view)
> 267 step=options.step, time=options.time,
> 268 anti_aliasing=options.anti_aliasing,
> --> 269 domain_specific=options.domain_specific)
> 270
> 271 else:
>
> TypeError: call_mlab() got an unexpected keyword argument 'colormap'
>
> Regards,
> Madhu