示例#1
0
class OperationLogs:
    OperationID = _Column(key=b'operation_id',
                          family_id='0',
                          serializer=serializers.UInt64String())

    UserID = _Column(key=b'user',
                     family_id='2',
                     serializer=serializers.String('utf-8'))

    RootID = _Column(
        key=b'roots',
        family_id='2',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    SourceID = _Column(
        key=b'source_ids',
        family_id='2',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    SinkID = _Column(
        key=b'sink_ids',
        family_id='2',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    SourceCoordinate = _Column(key=b'source_coords',
                               family_id='2',
                               serializer=serializers.NumPyArray(
                                   dtype=basetypes.COORDINATES, shape=(-1, 3)))

    SinkCoordinate = _Column(key=b'sink_coords',
                             family_id='2',
                             serializer=serializers.NumPyArray(
                                 dtype=basetypes.COORDINATES, shape=(-1, 3)))

    BoundingBoxOffset = _Column(
        key=b'bb_offset',
        family_id='2',
        serializer=serializers.NumPyArray(dtype=basetypes.COORDINATES))

    AddedEdge = _Column(key=b'added_edges',
                        family_id='2',
                        serializer=serializers.NumPyArray(
                            dtype=basetypes.NODE_ID, shape=(-1, 2)))

    RemovedEdge = _Column(key=b'removed_edges',
                          family_id='2',
                          serializer=serializers.NumPyArray(
                              dtype=basetypes.NODE_ID, shape=(-1, 2)))

    Affinity = _Column(
        key=b'affinities',
        family_id='2',
        serializer=serializers.NumPyArray(dtype=basetypes.EDGE_AFFINITY))
示例#2
0
class GraphSettings:
    DatasetInfo = _Column(key=b'dataset_info',
                          family_id='0',
                          serializer=serializers.JSON())

    ChunkSize = _Column(
        key=b'chunk_size',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.CHUNKSIZE))

    FanOut = _Column(key=b'fan_out',
                     family_id='0',
                     serializer=serializers.NumPyValue(dtype=basetypes.FANOUT))

    LayerCount = _Column(
        key=b'n_layers',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.LAYERCOUNT))

    SegmentationPath = _Column(key=b'cv_path',
                               family_id='0',
                               serializer=serializers.String('utf-8'))

    MeshDir = _Column(key=b'mesh_dir',
                      family_id='0',
                      serializer=serializers.String('utf-8'))
示例#3
0
class Hierarchy:
    Child = _Column(key=b'children',
                    family_id='0',
                    serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    FormerParent = _Column(
        key=b'former_parents',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    NewParent = _Column(
        key=b'new_parents',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    Parent = _Column(
        key=b'parents',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.NODE_ID))
示例#4
0
class Connectivity:
    Affinity = _Column(
        key=b'affinities',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.EDGE_AFFINITY))

    Area = _Column(
        key=b'areas',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.EDGE_AREA))

    Connected = _Column(
        key=b'connected',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    Disconnected = _Column(
        key=b'disconnected',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    Partner = _Column(
        key=b'atomic_partners',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.NODE_ID))

    CrossChunkEdge = _ColumnArray(pattern=b'atomic_cross_edges_%d',
                                  family_id='3',
                                  serializer=serializers.NumPyArray(
                                      dtype=basetypes.NODE_ID, shape=(-1, 2)))
示例#5
0
class GraphSettings:
    DatasetInfo = _Column(key=b'dataset_info',
                          family_id='0',
                          serializer=serializers.JSON())

    ChunkSize = _Column(
        key=b'chunk_size',
        family_id='0',
        serializer=serializers.NumPyArray(dtype=basetypes.CHUNKSIZE))

    FanOut = _Column(key=b'fan_out',
                     family_id='0',
                     serializer=serializers.NumPyValue(dtype=basetypes.FANOUT))

    LayerCount = _Column(
        key=b'n_layers',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.LAYERCOUNT))

    SegmentationPath = _Column(key=b'cv_path',
                               family_id='0',
                               serializer=serializers.String('utf-8'))

    MeshDir = _Column(key=b'mesh_dir',
                      family_id='0',
                      serializer=serializers.String('utf-8'))

    SpatialBits = _Column(
        key=b'spatial_bits',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.SPATIALBITS))

    RootCounterBits = _Column(
        key=b'root_counter_bits',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.ROOTCOUNTERBITS))

    SkipConnections = _Column(
        key=b'skip_connections',
        family_id='0',
        serializer=serializers.NumPyValue(dtype=basetypes.SKIPCONNECTIONS))