tensorstore.Unit.__eq__(self, other: Unit) bool

Compares two units for equality.

Example

>>> ts.Unit('3nm') == ts.Unit(3, 'nm')
>>> True