TensorStore
tensorstore.Unit.__init__(components)
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
        • Spec
          • C Spec
          • C Schema
          • C CodecSpec
          • C OpenMode
          • C ChunkLayout
          • C Unit
            • Constructors
              • M __init__(multiplier)
              • M __init__(unit)
              • M __init__(components)
              • M __init__(pair)
              • M __init__(json)
            • Accessors
            • Comparison operators
            • Arithmetic operators
          • V RecheckCacheOption
        • Views
        • Data types
        • Asynchronous support
        • OCDBT
        • Experimental
      • API reference
      • Building and Installing
      • Environment variables
      • JSON Spec
      • Index space
      • Schema
      • Context framework
      • Drivers
      • Key-Value Storage Layer
    tensorstore.Unit(multiplier: SupportsFloat, base_unit: str)

    Constructs a unit from a multiplier and base unit.

    Example

    >>> ts.Unit(3.5, 'nm')
    Unit(3.5, "nm")