Skip to content

Commit

Permalink
docs: minor edits
Browse files Browse the repository at this point in the history
  • Loading branch information
georgebisbas committed Jun 4, 2023
1 parent 285e9af commit 3ae6798
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions devito/data/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,11 +37,11 @@ class Data(np.ndarray):
-----
NumPy array subclassing is described at: ::
https://docs.scipy.org/doc/numpy-1.13.0/user/basics.subclassing.html
https://numpy.org/doc/stable/user/basics.subclassing.html
Any view or copy created from ``self``, for instance via a slice operation
or a universal function ("ufunc" in NumPy jargon), will still be of type
Data.
`Data`.
"""

def __new__(cls, shape, dtype, decomposition=None, modulo=None, allocator=ALLOC_FLAT,
Expand Down Expand Up @@ -224,7 +224,7 @@ def __getitem__(self, glb_idx, comm_type, gather_rank=None):
glb_shape = self._distributor.glb_shape
retval = np.zeros(glb_shape, dtype=self.dtype.type)
start, stop, step = 0, 0, 1
for i, s in enumerate(sendcounts):
for i in sendcounts:
if i > 0:
start += sendcounts[i-1]
stop += sendcounts[i]
Expand Down

0 comments on commit 3ae6798

Please sign in to comment.