Skip to content

Commit bc77cac

Browse files
committed
Started 0.2.1
1 parent 1a92741 commit bc77cac

File tree

2 files changed

+13
-7
lines changed

2 files changed

+13
-7
lines changed

zappend/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@
22
# Permissions are hereby granted under the terms of the MIT License:
33
# https://opensource.org/licenses/MIT.
44

5-
version = "0.2.0"
5+
version = "0.2.1.dev0"

zappend/slice/abc.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)