13217c2340d0a1d3677b27aaf39105de81770c1c,nisl/tests/test_utils.py,,test_as_ndarray,#,177
Before Change
// same dtype, order provided: copy.
arr1 = np.ones((10, 10), dtype=np.int32, order="C")
arr2 = utils.as_ndarray(arr1, order="F")
assert(arr2.flags["F_CONTIGUOUS"] and not arr2.flags["C_CONTIGUOUS"])
assert(arr2.dtype == arr1.dtype)
assert(not are_arrays_identical(arr1[0], arr2[0]))
After Change
msg=str(case))
result_order = out_order if out_order is not None else in_order
if result_order == "F":
assert_true(arr2.flags["F_CONTIGUOUS"])
else:
assert_true(arr2.flags["C_CONTIGUOUS"])
//// memmap
filename = osp.join(osp.dirname(__file__), "data", "mmap.dat")
// same dtype, no copy requested
arr1 = np.memmap(filename, dtype="float32", mode="w+", shape=(5,))
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: nilearn/nilearn
Commit Name: 13217c2340d0a1d3677b27aaf39105de81770c1c
Time: 2013-04-26
Author: philippe.gervais@inria.fr
File Name: nisl/tests/test_utils.py
Class Name:
Method Name: test_as_ndarray
Project Name: nilearn/nilearn
Commit Name: dc30d1f385bb6fc231880605e7b35afd56d64c6d
Time: 2013-05-27
Author: philippe.gervais@inria.fr
File Name: nisl/io/nifti_region.py
Class Name: NiftiLabelsMasker
Method Name: transform
Project Name: nilearn/nilearn
Commit Name: 530e3ca9148a36982c110007c081a571eff660e1
Time: 2013-05-27
Author: philippe.gervais@inria.fr
File Name: nisl/io/nifti_region.py
Class Name: NiftiMapsMasker
Method Name: transform