Skip to content

Commit a82e10c

Browse files
authored
FIX np.product is deprecated in favor of np.prod (#541)
1 parent d942fc0 commit a82e10c

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Diff for: cortex/tests/test_dataset.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def test_volumedata_copy_with_custom_mask():
188188

189189
@pytest.mark.skipif(no_inkscape, reason='Inkscape required')
190190
def test_int64_in_dataviewrgb():
191-
data = np.arange(np.product(volshape)).reshape(volshape, order='C')
191+
data = np.arange(np.prod(volshape)).reshape(volshape, order='C')
192192
view = cortex.VolumeRGB(data, data + 1, data + 2, subject=subj,
193193
xfmname=xfmname)
194194
cortex.quickshow(view)
@@ -200,7 +200,7 @@ def test_int64_in_dataviewrgb():
200200

201201
@pytest.mark.skipif(no_inkscape, reason='Inkscape required')
202202
def test_vmin_none_in_dataview2d():
203-
data = np.arange(np.product(volshape)).reshape(volshape, order='C')
203+
data = np.arange(np.prod(volshape)).reshape(volshape, order='C')
204204
view = cortex.Volume2D(data, data + 1, subject=subj, xfmname=xfmname)
205205
cortex.quickshow(view)
206206

Diff for: examples/utils/multi_panels_plots.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
# create some artificial data
3333

3434
shape = cortex.db.get_xfm(subject, 'identity').shape
35-
data = np.arange(np.product(shape)).reshape(shape)
35+
data = np.arange(np.prod(shape)).reshape(shape)
3636
volume = cortex.Volume(data, subject=subject, xfmname='identity')
3737

3838
###############################################################################

0 commit comments

Comments
 (0)