@@ -795,7 +795,7 @@ def __getitem__(self, indices):
795795 If the shape of the data is unknown then it is calculated
796796 immediately by executing all delayed operations.
797797
798- . seealso:: `vindex`, ` __keepdims_indexing__`,
798+ . seealso:: `__keepdims_indexing__`,
799799 `__orthogonal_indexing__`, `__setitem__`
800800
801801 :Returns:
@@ -5205,38 +5205,37 @@ def mask(self):
52055205
52065206 return mask_data_obj
52075207
5208- # @property
5209- def vindex (self , * indices ):
5210- """Vectorized indexing with broadcasting.
5211-
5212- This is equivalent to numpy’s advanced indexing, using arrays
5213- that are broadcast against each other. This allows for
5214- pointwise indexing.
5215-
5216- .. versionadded:: TODOUGRIDVER
5217-
5218- .. seealso:: `__getitem__`
5219-
5220- **Examples**
5221-
5222- >>> d = cf.Data([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
5223- >>> print(d.vindex([0, 1, 2], [0, 1, 2]).array)
5224- [1 5 9]
5225- >>> print(d.vindex(0, [0, 0, 1]).array)
5226- [1 1 2]
5227-
5228- """
5229- new = self .copy (array = False )
5230- dx = self .to_dask_array ()
5231- dx = dx .vindex [indices ]
5232- new ._set_dask (dx )
5233-
5234- if self .nc_hdf5_chunksizes () and new .shape != self .shape :
5235- # Delete hdf5 chunksizes when the shape has changed.
5236- new .nc_clear_hdf5_chunksizes ()
5208+ # def vindex(self, *indices):
5209+ # """Vectorized indexing with broadcasting.
5210+ #
5211+ # This is equivalent to numpy’s advanced indexing, using arrays
5212+ # that are broadcast against each other. This allows for
5213+ # pointwise indexing.
5214+ #
5215+ # .. versionadded:: TODOUGRIDVER
5216+ #
5217+ # .. seealso:: `__getitem__`
5218+ #
5219+ # **Examples**
5220+ #
5221+ # >>> d = cf.Data([[1, 2, 3], [4, 5, 6], [7, 8, 9]])
5222+ # >>> print(d.vindex([0, 1, 2], [0, 1, 2]).array)
5223+ # [1 5 9]
5224+ # >>> print(d.vindex(0, [0, 0, 1]).array)
5225+ # [1 1 2]
5226+ #
5227+ # """
5228+ # new = self.copy(array=False)
5229+ # dx = self.to_dask_array()
5230+ # dx = dx.vindex[indices]
5231+ # new._set_dask(dx)
5232+ #
5233+ # if self.nc_hdf5_chunksizes() and new.shape != self.shape:
5234+ # # Delete hdf5 chunksizes when the shape has changed.
5235+ # new.nc_clear_hdf5_chunksizes()
5236+ #
5237+ # return new
52375238
5238- return new
5239-
52405239 @_inplace_enabled (default = False )
52415240 def arctan (self , inplace = False ):
52425241 """Take the trigonometric inverse tangent of the data element-
0 commit comments