Xarray-custom

Latest version: v0.6.2

Safety actively analyzes 688674 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.4.0

- Add utils module to provide include class decorator

Examples

If a definition is written in ``dataarray.toml``:

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 = 0


then the following two class definitions are equivalent:

python
dataarrayclass(accessor='img')
include('dataarray.toml')
class Image:
pass


python
dataarrayclass(accessor='img')
class Image:
"""DataArray class to represent images."""

dims = 'x', 'y'
dtype = float
x: ctype('x', int) = 0
y: ctype('y', int) = 0

0.3.0

- Rename function (`coordtype` → `ctype`)
- Usage of `dataarrayclass` is changed (see documentation)
- `dims` and `dtype` of DataArray are now specified as a class attributes
- Add feature of format docstrings of special methods according to class attributes.

0.2.1

- Fix wrong description of `dtype` in docstrings
- Add module docstrings

0.2.0

- Add `dataarrayclass` decorator to update DataArray classes
- Add `coordtype` function for class variable annotations
- Add sphinx documentation

0.1.0

Page 2 of 2

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.