@@ -51,11 +51,15 @@ def __exit__(self, exc_type, exc_val, exc_tb):
5151
5252 @abstractmethod
5353 def get_dataset (self ) -> xr .Dataset :
54- """Open this slice source and return the dataset instance.
54+ """Open this slice source, do some processing and return a dataset of type
55+ [xarray.Dataset](https://docs.xarray.dev/en/stable/generated/xarray.Dataset.html)
56+ as result.
5557
5658 This method is not intended to be called directly.
57- Instead, instances of this class are context managers and
58- should be used as such.
59+ Instead, instances of this class are context managers and should be used with
60+ the Python `with` statement.
61+
62+ This method is called exactly once for each instance of this class.
5963
6064 It should return a dataset that is compatible with
6165 target dataset:
@@ -69,10 +73,12 @@ def get_dataset(self) -> xr.Dataset:
6973
7074 def dispose (self ):
7175 """Dispose this slice source.
72- This should include cleaning up of used resources.
76+ This should include cleaning up of any temporary resources.
7377
7478 This method is not intended to be called directly.
75- Instead, instances of this class are context managers and
76- should be used as such.
79+ Instead, instances of this class are context managers and should be used with
80+ the Python `with` statement.
81+
82+ This method is called exactly once for each instance of this class.
7783 """
7884 self ._ctx = None
0 commit comments