TensorStore
tensorstore.Unit.to_json
Initializing search
    tensorstore
    tensorstore
      • Tutorial
      • Indexing
      • API reference
        • Core
        • Indexing
        • Spec
          • CSpec
          • CSchema
          • CCodecSpec
          • COpenMode
          • CChunkLayout
          • CUnit
            • Constructors
            • Accessors
              • Pmultiplier
              • Pbase_unit
              • Mto_json
            • Comparison operators
            • Arithmetic operators
          • VRecheckCacheOption
        • 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']
    
    Back to top
    Previous tensorstore.Unit.base_unit
    Next tensorstore.Unit.__eq__