1
- # Important Note
2
- This repository was a fork from [ here] ( https://github.com/astropenguin/xarray-dataclasses ) . We are grateful for the
3
- work of the developer on this repo. That being said, sadly the state on main has been the case that the code was
4
- deleted and there has been no development for a while. Therefore, we intially decided to fork the repository and
5
- continue development here, where the community is better able to contribute to and maintain the project. We now changed
6
- it into a standalone repository.
7
1
8
- Note, the repository is not yet released. We are making some additional changes before release.
2
+ This repository is adapted from [ here] ( https://github.com/astropenguin/xarray-dataclasses ) . We are grateful for the
3
+ work of the developer on this repo. Sadly, that repository is inactive. Thus, a fork was moved here in order to allow
4
+ for more visibility and community maintenance.
9
5
10
6
# xarray-dataclasses
11
7
12
- [ ![ Release] ( https://img.shields.io/pypi/v/xarray-dataclasses ?label=Release&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/xarray-dataclasses / )
13
- [ ![ Python] ( https://img.shields.io/pypi/pyversions/xarray-dataclasses ?label=Python&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/xarray-dataclasses / )
14
- [ ![ Downloads] ( https://img.shields.io/pypi/dm/xarray-dataclasses ?label=Downloads&color=cornflowerblue&style=flat-square )] ( https://pepy.tech/project/xarray-dataclasses )
8
+ [ ![ Release] ( https://img.shields.io/pypi/v/xarray-dataclass ?label=Release&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/xarray-dataclass / )
9
+ [ ![ Python] ( https://img.shields.io/pypi/pyversions/xarray-dataclass ?label=Python&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project/xarray-dataclass / )
10
+ [ ![ Downloads] ( https://img.shields.io/pypi/dm/xarray-dataclass ?label=Downloads&color=cornflowerblue&style=flat-square )] ( https://pepy.tech/project/xarray-dataclass )
15
11
[ ![ DOI] ( https://img.shields.io/badge/DOI-10.5281/zenodo.4624819-cornflowerblue?style=flat-square )] ( https://doi.org/10.5281/zenodo.4624819 )
16
- [ ![ Tests] ( https://img.shields.io/github/actions/workflow/status/astropenguin /xarray-dataclasses /tests.yml?label=Tests&style=flat-square )] ( https://github.com/astropenguin /xarray-dataclasses /actions/workflows/tests.yaml )
17
- [ ![ Release] ( https://github.com/melonora/ xarray-dataclasses/actions/workflows/pypi.yaml/badge.svg?event=release )] ( https://github.com/melonora /xarray-dataclasses/actions/workflows/pypi.yaml )
12
+ [ ![ Tests] ( https://img.shields.io/github/actions/workflow/status/xarray-contrib /xarray-dataclass /tests.yml?label=Tests&style=flat-square )] ( https://github.com/xarray-contrib /xarray-dataclass /actions/workflows/tests.yaml )
13
+ [ ![ Release] ( https://img.shields.io/pypi/v/ xarray-dataclass?label=Release&color=cornflowerblue&style=flat-square )] ( https://pypi.org/project /xarray-dataclass/ )
18
14
19
15
xarray data creation by data classes
20
16
@@ -59,10 +55,8 @@ class Image(AsDataArray):
59
55
There are multiple ways you can install xarray-dataclasses, dependent on what kind of dependency manager you use.
60
56
61
57
``` shell
62
- pip install xarray-dataclasses
63
- conda install -c conda-forge xarray-dataclasses
64
- pixi add xarray-dataclasses
65
- pixi add --pypi xarray-dataclasses
58
+ pip install xarray-dataclass
59
+ pixi add --pypi xarray-dataclass
66
60
```
67
61
68
62
## Basic usage
@@ -374,7 +368,7 @@ First install [pixi](https://pixi.sh/latest/installation/). Then, install projec
374
368
375
369
``` shell
376
370
pixi install -a
377
- pixi run pre-commit-install
371
+ pixi run -e dev pre-commit-install
378
372
```
379
373
380
374
### Testing, linting, and formatting
@@ -386,7 +380,7 @@ in that case.
386
380
387
381
```
388
382
pixi run tests
389
- pixi run -e dev pre-commit run -- all- files
383
+ pixi run precommit # This runs pre-commit on all files.
390
384
```
391
385
392
386
### Creating documentation
0 commit comments