Issue 157 in sfepy: performance and deprecation warning.

7 views
Skip to first unread message

sf...@googlecode.com

unread,
Sep 9, 2011, 2:46:39 PM9/9/11
to sfepy-...@googlegroups.com
Status: New
Owner: rashed.g...@gmail.com
Labels: Type-Defect Priority-Medium

New issue 157 by rashed.g...@gmail.com: performance and deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157

These warning arises when running runTests.py
Apparently, These errors can be eliminated using new Keywords provided in
the warning.
Anyone want to fix them?

#1:
tests\test_assembling.py

Warning (from warnings module):
File "C:\src\sfepy\sfepy\fem\extmods\geometry.py", line 178
return _geometry.VolumeGeometry_variable(self, *args)
DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew.

Warning (from warnings module):
File "C:\src\sfepy\sfepy\fem\extmods\geometry.py", line 178
return _geometry.VolumeGeometry_variable(self, *args)
DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use
PyArray_NewFromDescr.


#2:
tests\test_input_biot_npbc.py

Warning (from warnings module):
File "C:\src\sfepy\sfepy\fem\extmods\geometry.py", line 260
return _geometry.SurfaceGeometry_variable(self, *args)
DeprecationWarning: PyArray_FromDims: use PyArray_SimpleNew.

Warning (from warnings module):
File "C:\src\sfepy\sfepy\fem\extmods\geometry.py", line 260
return _geometry.SurfaceGeometry_variable(self, *args)
DeprecationWarning: PyArray_FromDimsAndDataAndDescr: use
PyArray_NewFromDescr.


#3:
tests\test_input_linear_elastic_dynamic.py

Warning (from warnings module):

File "C:\Python26\lib\site-packages\scipy\sparse\linalg\dsolve\linsolve.py",
line 263
warn('splu requires CSC matrix format', SparseEfficiencyWarning)
SparseEfficiencyWarning: splu requires CSC matrix format


sf...@googlecode.com

unread,
Sep 15, 2011, 4:37:23 AM9/15/11
to sfepy-...@googlegroups.com

Comment #1 on issue 157 by robert.c...@gmail.com: performance and
deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157

I guess #1 and #2 will go away after we change swig for cython (which is
due now).

#3 is IMHO a non-issue for matrix sizes that are feasible for LU, so we
could just probably silence it.

import warnings
warnings.simplefilter('ignore', SparseEfficiencyWarning)

sf...@googlecode.com

unread,
Oct 14, 2011, 8:53:20 AM10/14/11
to sfepy-...@googlegroups.com
Updates:
Status: Fixed

Comment #2 on issue 157 by robert.c...@gmail.com: performance and
deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157

Cython is in, so #1, #2 are fixed. #3 is silenced.

sf...@googlecode.com

unread,
Oct 15, 2011, 2:41:42 AM10/15/11
to sfepy-...@googlegroups.com

Comment #3 on issue 157 by rashed.g...@gmail.com: performance and
deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157

i pulled from git today and still those two warnings are showing. is the
repository updated yet?

sf...@googlecode.com

unread,
Oct 15, 2011, 1:04:15 PM10/15/11
to sfepy-...@googlegroups.com

Comment #4 on issue 157 by robert.c...@gmail.com: performance and
deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157

It is not yet in the master, but in my experimental github repo

git clone git://github.com/rc/sfepy.git


sf...@googlecode.com

unread,
Jan 30, 2012, 8:19:50 AM1/30/12
to sfepy-...@googlegroups.com
Updates:
Status: Migrated

Comment #5 on issue 157 by robert.c...@gmail.com: performance and
deprecation warning.
http://code.google.com/p/sfepy/issues/detail?id=157#c5

Migrated to http://github.com/sfepy/sfepy/issues/159

Reply all
Reply to author
Forward
0 new messages