tensorstore.Unit(*, json: Any)

Constructs a unit from its JSON representation.

Example

>>> ts.Unit(json=[3.5, 'nm'])
Unit(3.5, "nm")