astropenguin / xarray-dataclasses

:zap: xarray data creation by data classes
https://astropenguin.github.io/xarray-dataclasses/
MIT License
71 stars 4 forks source link

Add specs module #156

Closed astropenguin closed 2 years ago

astropenguin commented 2 years ago

In the current DataModel, type information (e.g. dims, dtype) and the dataclass values are handled in a single object, which complicates the code. Then we would like to introduce DataSpec that only contains type information, similar to the one used in pandas-dataclasses.