Skip to content

Commit

Permalink
With reference to issue dask#3663
Browse files Browse the repository at this point in the history
  • Loading branch information
Saanidhyavats committed Jan 19, 2020
1 parent 9c3143b commit 671f792
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions dask/array/slicing.py
Expand Up @@ -11,6 +11,7 @@
from .. import core
from ..highlevelgraph import HighLevelGraph
from ..base import tokenize, is_dask_collection
import dask.array as da

colon = slice(None, None, None)

Expand Down Expand Up @@ -1240,3 +1241,15 @@ def cached_cumsum(seq, initial_zero=False):
if not initial_zero:
result = result[1:]
return result


def take_along_axis(arr,indices,axis):
if axis is None:
arr=arr.flat
arr_shape=(len(arr),)
axis=0
arr=np.array(arr)
indices=np.array()
if np.shape(arr)!=np.shape(indices):
raise ValueError('Dimensions of arr and indices does not match ')

0 comments on commit 671f792

Please sign in to comment.