TensorStore
tensorstore.Unit.to_json
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
        • Spec
          • C Spec
          • C Schema
          • C CodecSpec
          • C OpenMode
          • C ChunkLayout
          • C Unit
            • Constructors
            • Accessors
              • P multiplier
              • P base_unit
              • M to_json
            • 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.to_json(self) → Any

    Converts to the JSON representation.

    Example

    >>> ts.Unit('3nm').to_json()
    [3.0, 'nm']