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
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)
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.
i pulled from git today and still those two warnings are showing. is the
repository updated yet?
It is not yet in the master, but in my experimental github repo
git clone git://github.com/rc/sfepy.git
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