From 3ae6798aee2358774d1b201ec3ca35d4486faa3c Mon Sep 17 00:00:00 2001 From: George BIsbas Date: Sun, 4 Jun 2023 13:42:03 +0100 Subject: [PATCH] docs: minor edits --- devito/data/data.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/devito/data/data.py b/devito/data/data.py index 046b1623426..0636d9b77cb 100644 --- a/devito/data/data.py +++ b/devito/data/data.py @@ -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, @@ -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]