deltametrics.io.BaseIO

class deltametrics.io.BaseIO(io_type)

BaseIO object other file format wrappers inheririt from.

Note

This is an abstract class and cannot be instantiated directly. If you wish to subclass to create a new IO format, you must implement several methods.

To create an IO format for data already loaded into memory, you can subclass BaseIO directly, and you just need to implement the __getitem__ method and keys attribute.

To create an IO format that reads data from disk, you should subclass FileIO, and implement the required methods __getitem__, connect, read, and write, and the keys attribute.

__init__(io_type)

Initialize the base IO.

Methods

__init__(io_type)

Initialize the base IO.

Attributes

keys

Should link to all key _names_ stored in file.

abstract __getitem__()

Should slice the data from file.

abstract property keys

Should link to all key _names_ stored in file.