Hi SfePy folks,
I worked on a couple problems using sfepy 6.5 years ago, and then drifted away. Today I tried to run my old code using the latest SfePy and it's mostly broken. ;-( What is the best way to see what's changed since 2012 and how one should go about updating code from that time?
thanks! -steve
Here’s an example of the sort of thing I’m hitting:
(sfe) aluminum:AcousticsStuff steve$ python acoustics.py sfepy: left over: ['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', '__cached__', '__builtins__', 'get_r_dependence', 'verbose', '_filename'] reading mesh [line2, tri3, quad4, tetra4, hexa8] (tmp/mesh.vtk)... ...done in 0.74 s warning: bad element orientation, trying to correct... ...corrected creating regions... Omega ...done in 0.03 s using solvers: ts: no ts Traceback (most recent call last): File "acoustics.py", line 37, in <module> main() File "acoustics.py", line 34, in main app() File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/applications/application.py", line 29, in call_basic return self.call(**kwargs) File "/Volumes/GoogleDrive/My Drive/AcousticsStuff/acoustics_app.py", line 67, in call evp = self.solve_eigen_problem() File "/Volumes/GoogleDrive/My Drive/AcousticsStuff/acoustics_app.py", line 84, in solve_eigen_problem pb.set_equations(pb.conf.equations) File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/problem.py", line 513, in set_equations self.integrals = self.get_integrals() File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/problem.py", line 550, in get_integrals integrals = Integrals.from_conf(conf_integrals) File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/integrals.py", line 29, in from_conf order=desc.order) AttributeError: 'Struct' object has no attribute ‘order’
thanks, -steve
On Oct 2, 2018, at 6:56 AM, steve@spvi.com wrote:
Hi SfePy folks,
I worked on a couple problems using sfepy 6.5 years ago, and then drifted away. Today I tried to run my old code using the latest SfePy and it's mostly broken. ;-( What is the best way to see what's changed since 2012 and how one should go about updating code from that time?
thanks! -steve
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
Hi Steve,
could you send me the file (and the mesh, off-list if it is big)?
r.
On 10/02/2018 01:18 PM, Steve Spicklemire wrote:
Here’s an example of the sort of thing I’m hitting:
(sfe) aluminum:AcousticsStuff steve$ python acoustics.py sfepy: left over: ['__name__', '__doc__', '__package__', '__loader__', '__spec__', '__file__', '__cached__', '__builtins__', 'get_r_dependence', 'verbose', '_filename'] reading mesh [line2, tri3, quad4, tetra4, hexa8] (tmp/mesh.vtk)... ...done in 0.74 s warning: bad element orientation, trying to correct... ...corrected creating regions... Omega ...done in 0.03 s using solvers: ts: no ts Traceback (most recent call last): File "acoustics.py", line 37, in <module> main() File "acoustics.py", line 34, in main app() File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/applications/application.py", line 29, in call_basic return self.call(**kwargs) File "/Volumes/GoogleDrive/My Drive/AcousticsStuff/acoustics_app.py", line 67, in call evp = self.solve_eigen_problem() File "/Volumes/GoogleDrive/My Drive/AcousticsStuff/acoustics_app.py", line 84, in solve_eigen_problem pb.set_equations(pb.conf.equations) File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/problem.py", line 513, in set_equations self.integrals = self.get_integrals() File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/problem.py", line 550, in get_integrals integrals = Integrals.from_conf(conf_integrals) File "/Users/steve/miniconda/envs/sfe/lib/python3.6/site-packages/sfepy/discrete/integrals.py", line 29, in from_conf order=desc.order) AttributeError: 'Struct' object has no attribute ‘order’
thanks, -steve
On Oct 2, 2018, at 6:56 AM, steve@spvi.com wrote:
Hi SfePy folks,
I worked on a couple problems using sfepy 6.5 years ago, and then drifted away. Today I tried to run my old code using the latest SfePy and it's mostly broken. ;-( What is the best way to see what's changed since 2012 and how one should go about updating code from that time?
thanks! -steve
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
Hi Steve,
Welcome back :)
I suggest you either to look at a SfePy example similar to your problem and check the problem description section in the user's guide, or just send me the file. IMHO the update will be a few easy things.
r.
On 10/02/2018 12:56 PM, steve@spvi.com wrote:
Hi SfePy folks,
I worked on a couple problems using sfepy 6.5 years ago, and then drifted away. Today I tried to run my old code using the latest SfePy and it's mostly broken. ;-( What is the best way to see what's changed since 2012 and how one should go about updating code from that time?
thanks! -steve
SfePy mailing list -- sfepy@python.org To unsubscribe send an email to sfepy-leave@python.org https://mail.python.org/mm3/mailman3/lists/sfepy.python.org/
participants (3)
-
Robert Cimrman
-
Steve Spicklemire
-
steve@spvi.com