sfepy/sfepy — Issue #163: Wrong variable name "sm" in sfepy/postprocess/viewer.py
Author: rc
Created: 2012-01-30 10:27:46+00:00
State: open

It must be "vm":

Traceback (most recent call last):
File "asi_breaker.py", line 120, in <module>
main()
File "asi_breaker.py", line 117, in main
view(vector_mode="warp_norm", rel_scaling=2, is_scalar_bar=True, is_wireframe=True)
File "/home/bronger/sfepy/sfepy/postprocess/viewer.py", line 725, in call_mlab
% sm)
UnboundLocalError: local variable 'sm' referenced before assignment

Migrated from http://code.google.com/p/sfepy/issues/detail?id=161

earlier comments

robert.cimrman said, at 2011-12-21T10:37:07.000Z:

Could you verify the fix at [1]?

[1] http://github.com/rc/sfepy/tree/master

torsten.bronger said, at 2011-12-21T10:43:04.000Z:

I changed sm to vm locally on my PC in that line 725 and it worked for me.

robert.cimrman said, at 2011-12-21T10:44:37.000Z:

Ok, let's close this...