diplomat.utils.frame_store_apiΒΆ

Provides a generic API and some core data structures for frame store formats, or files which store model outputs on disk.

Functions

edge_list(lister)

Normalizes a list of graph edges.

from_bytes(data, dtype)

Converts bytes to a single object depending on the passed data type.

non_max_int32(val)

Casts an object to a non-max integer, being None if it is the maximum value.

string_list(lister)

Casts object to a list of strings, enforcing type...

to_bytes(obj, dtype)

Converts an object to bytes.

Classes

DLFSHeader(*args, **kwargs)

Stores some basic info about a frame store...

FrameReader(file)

The frame reader API.

FrameWriter(file, header[, threshold])

The frame writer API.