Skip to content

Commit

Permalink
FIX np.product is deprecated in favor of np.prod (#541)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvdoc authored Jun 21, 2024
1 parent d942fc0 commit a82e10c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions cortex/tests/test_dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ def test_volumedata_copy_with_custom_mask():

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

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

Expand Down
2 changes: 1 addition & 1 deletion examples/utils/multi_panels_plots.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
# create some artificial data

shape = cortex.db.get_xfm(subject, 'identity').shape
data = np.arange(np.product(shape)).reshape(shape)
data = np.arange(np.prod(shape)).reshape(shape)
volume = cortex.Volume(data, subject=subject, xfmname='identity')

###############################################################################
Expand Down

0 comments on commit a82e10c

Please sign in to comment.