1acac6ebc09395f6a623c9d620a91fe7322782bc,mvpa/tests/test_datasetng.py,,test_other_samples_dtypes,#,720
Before Change
return hasattr(sparse, "bsr_matrix") and isinstance(x, sparse.bsr_matrix)
def test_other_samples_dtypes():
if not exists("scipy"):
// yoh: theoretically we should still test for non-sparse types below
// but checks are too much interleaved -- so lets just don"t test
// if scipy is not there
return
import scipy.sparse as sparse
dshape = (4, 3)
// test for ndarray, custom ndarray-subclass, matrix,
// and all sparse matrix types we know
After Change
return hasattr(sparse, "bsr_matrix") and isinstance(x, sparse.bsr_matrix)
def test_other_samples_dtypes():
skip_if_no_external("scipy")
import scipy.sparse as sparse
dshape = (4, 3)
// test for ndarray, custom ndarray-subclass, matrix,
// and all sparse matrix types we know
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances Project Name: PyMVPA/PyMVPA
Commit Name: 1acac6ebc09395f6a623c9d620a91fe7322782bc
Time: 2010-02-11
Author: debian@onerussian.com
File Name: mvpa/tests/test_datasetng.py
Class Name:
Method Name: test_other_samples_dtypes
Project Name: PyMVPA/PyMVPA
Commit Name: 6356e7e9a0b6ab21ff1c051a49df8685f9645491
Time: 2013-08-22
Author: nikolaas.oosterhof@unitn.it
File Name: mvpa2/tests/test_datameasure.py
Class Name: SensitivityAnalysersTests
Method Name: test_split_samples_probability_mapper
Project Name: PyMVPA/PyMVPA
Commit Name: 1acac6ebc09395f6a623c9d620a91fe7322782bc
Time: 2010-02-11
Author: debian@onerussian.com
File Name: mvpa/tests/test_datasetng.py
Class Name:
Method Name: test_h5py_io