File tree Expand file tree Collapse file tree 1 file changed +0
-44
lines changed
Expand file tree Collapse file tree 1 file changed +0
-44
lines changed Original file line number Diff line number Diff line change @@ -478,50 +478,6 @@ def get_all_depth_names(self) -> list[Hashable]:
478478 """
479479 return [c .name for c in self .depth_coordinates ]
480480
481- @utils .deprecated (
482- (
483- "Convention.get_depths() is deprecated. "
484- "Use Convention.depth_coordinate.values instead."
485- ),
486- DeprecationWarning ,
487- )
488- def get_depths (self ) -> numpy .ndarray :
489- """Get the depth of each vertical layer in this dataset.
490-
491- .. deprecated:: 0.5.0
492- This method is replaced by
493- :attr:`Convention.depth_coordinate.values <Convention.depth_coordinate>`.
494-
495- Returns
496- -------
497- :class:`numpy.ndarray`
498- An array of depths, one per vertical layer in the dataset.
499- """
500- return cast (numpy .ndarray , self .depth_coordinate .values )
501-
502- @utils .deprecated (
503- (
504- "Convention.get_times() is deprecated. "
505- "Use Convention.time_coordinate.values instead."
506- ),
507- DeprecationWarning ,
508- )
509- def get_times (self ) -> numpy .ndarray :
510- """Get all timesteps in this dataset.
511-
512- .. deprecated:: 0.5.0
513- This method is replaced by
514- :attr:`Convention.time_coordinate.values <Convention.time_coordinate>`.
515-
516- Returns
517- -------
518- :class:`numpy.ndarray`
519- An array of datetimes.
520- The datetimes will be whatever native format the dataset uses,
521- likely :class:`numpy.datetime64`.
522- """
523- return cast (numpy .ndarray , self .time_coordinate .values )
524-
525481 @abc .abstractmethod
526482 def ravel_index (self , index : Index ) -> int :
527483 """Convert a convention native index to a linear index.
You can’t perform that action at this time.
0 commit comments