sfepy/sfepy — Issue #159: performance and deprecation warning.
Author: rc
Created: 2012-01-30 10:27:40+00:00
State: open

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

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

earlier comments

robert.cimrman said, at 2011-09-15T08:36:29.000Z:

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)

robert.cimrman said, at 2011-10-14T12:52:23.000Z:

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

rashed.golam said, at 2011-10-15T06:40:48.000Z:

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

robert.cimrman said, at 2011-10-15T17:03:12.000Z:

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

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