jaxoplanet.units.field#
Functions#
|
A custom Equinox field with support for units |
Module Contents#
- jaxoplanet.units.field.field(*, units: Any = None, strict: bool = False, **kwargs: Any) Any [source]#
A custom Equinox field with support for units
This is a wrapper around
equinox.field()
that adds support for units. Theunits
argument is used to specify the units of the field either as a plainUnit
or string, or as a Pytree with the same structure as the expected input.