pombreda / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

Wrong variable name "sm" in sfepy/postprocess/viewer.py #161

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by torsten....@gmail.com on 20 Dec 2011 at 12:10

GoogleCodeExporter commented 9 years ago
Could you verify the fix at [1]?

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

Original comment by robert.c...@gmail.com on 21 Dec 2011 at 10:37

GoogleCodeExporter commented 9 years ago
I changed sm to vm locally on my PC in that line 725 and it worked for me.

Original comment by torsten....@gmail.com on 21 Dec 2011 at 10:43

GoogleCodeExporter commented 9 years ago
Ok, let's close this...

Original comment by robert.c...@gmail.com on 21 Dec 2011 at 10:44

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/163

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:27