Releases: astropenguin/xarray-custom
Releases · astropenguin/xarray-custom
Bug-fix release
This release closes the following issues.
- Fix wrong auto-generated docstrings #22
- In v0.6.1, auto-generated docstrings of DataArray classes are wrong.
This issue will fix it by updating thexarray_custom.bases.Docclass.
- In v0.6.1, auto-generated docstrings of DataArray classes are wrong.
- Fix wrong docstring of utils module #23
- In v0.6.1, code examples in the docstring of the utils module are outdated.
This issue will update them so that they are compatible with the latest package.
- In v0.6.1, code examples in the docstring of the utils module are outdated.
- Release v0.6.2 #24
- Update version numbers (0.6.1 → 0.6.2) written in:
xarray_custom/__init__.pytests/test_package.pydocs/conf.pypyproject.toml
- Update version numbers (0.6.1 → 0.6.2) written in:
Bug-fix release
This release closes the following issues.
- Fix dims in DataArrayClassBase #18
- In the v0.6.0 release,
dims = "ch"is wrongly treated likedims = ("c", "h")in the codes.
This issue adds some codes to ensure thatdims = "ch"is converted todims = ("ch",).
- In the v0.6.0 release,
- Release v0.6.1 #20
- Update version numbers (0.6.0 → 0.6.1) written in:
xarray_custom/__init__.pytests/test_package.pydocs/conf.pypyproject.toml
- Update version numbers (0.6.0 → 0.6.1) written in:
Update release
This release closes the following issues:
- Use real inheritance #13
- Add
DataArrayClassBaseclass for the base class of custom DataArray classes - Add
accessorclass variable to the definition of a DataArray class
- Add
- Release v0.6.0 #16
- Update version numbers written in:
xarray_custom/__init__.pytests/test_package.pydocs/conf.pypyproject.toml
- Update GitHub Actions workflows
- Update version numbers written in:
Docs-update release
- Add xarray's license to the project (because the documentation uses its icon)
- Add installation, requirements, and license sections to README
Update release
- Add a feature of an option in the case of overriding an existing accessor (#12)
- Rename an argument of
dataarrayclass(override→override_accessor)
Bug-fix release
- Fix ensuring function of
dimsso that a multiple-letter dim (e.g.,'ch') can properly be set
Update release
- Add utils module to provide include class decorator
Examples
If a definition is written in dataarray.toml:
# dataarray.toml
dims = [ "x", "y" ]
dtype = "float"
desc = "DataArray class to represent images."
[coords.x]
dims = "x"
dtype = "int"
default = 0
[coords.y]
dims = "y"
dtype = "int"
default = 0then the following two class definitions are equivalent:
@dataarrayclass(accessor='img')
@include('dataarray.toml')
class Image:
pass@dataarrayclass(accessor='img')
class Image:
"""DataArray class to represent images."""
dims = 'x', 'y'
dtype = float
x: ctype('x', int) = 0
y: ctype('y', int) = 0Update release
- Rename function (
coordtype→ctype) - Usage of
dataarrayclassis changed (see documentation) dimsanddtypeof DataArray are now specified as a class attributes- Add feature of format docstrings of special methods according to class attributes.
Documentation update release
- Fix wrong description of
dtypein docstrings - Add module docstrings
Update release
- Add
dataarrayclassdecorator to update DataArray classes - Add
coordtypefunction for class variable annotations - Add sphinx documentation