sfepy/sfepy — Issue #109: Small fix to sfepy_gui
Author: rc
Created: 2012-01-30 10:26:25+00:00
State: open

Hi,

I was testing the SfePy gui and ran into the following exception:

logan@phoenix:~/projects/sfepy_doc2$ ./sfepy_gui.py
Exception in thread Thread-3:
Traceback (most recent call last):
File "/usr/lib/python2.5/threading.py", line 486, in __bootstrap_inner
self.run()
File "./sfepy_gui.py", line 29, in run
output_dir=self.gui.output_dir)
File "/home/logan/projects/sfepy_doc2/sfepy/applications/top_level.py",
line 28, in pde_solve
return app()
File "/home/logan/projects/sfepy_doc2/sfepy/applications/application.py",
line 29, in call_basic
return self.call( **kwargs )
File "/home/logan/projects/sfepy_doc2/sfepy/applications/simple_app.py",
line 101, in call
self.post_process_hook )
File "/home/logan/projects/sfepy_doc2/sfepy/solvers/generic.py", line
209, in solve_direct
if options.save_regions_as_groups:
AttributeError: 'Struct' object has no attribute 'save_regions_as_groups'

It looks like a simple change to the default options in
sfepy/application/top_level.py should solve this issue. I put the patch in
my github master branch at [1].

Thanks!
Logan

[1] http://github.com/logansorenson/sfepy_doc2

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

earlier comments

robert.cimrman said, at 2010-02-25T08:59:48.000Z:

Applied, thanks!