thegooglecodearchive / sfepy

Automatically exported from code.google.com/p/sfepy
0 stars 0 forks source link

performance and deprecation warning. #157

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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

Original issue reported on code.google.com by rashed.g...@gmail.com on 9 Sep 2011 at 6:46

GoogleCodeExporter commented 9 years ago
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) 

Original comment by robert.c...@gmail.com on 15 Sep 2011 at 8:36

GoogleCodeExporter commented 9 years ago
Cython is in, so #1, #2 are fixed. #3 is silenced.

Original comment by robert.c...@gmail.com on 14 Oct 2011 at 12:52

GoogleCodeExporter commented 9 years ago
i pulled from git today and still those two warnings are showing. is the 
repository updated yet?

Original comment by rashed.g...@gmail.com on 15 Oct 2011 at 6:40

GoogleCodeExporter commented 9 years ago
It is not yet in the master, but in my experimental github repo

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

Original comment by robert.c...@gmail.com on 15 Oct 2011 at 5:03

GoogleCodeExporter commented 9 years ago
Migrated to http://github.com/sfepy/sfepy/issues/159

Original comment by robert.c...@gmail.com on 30 Jan 2012 at 10:27