components.dataset

Module Contents

Classes

Dataset

An object of this class represents the dataset.

Attributes

d

class components.dataset.Dataset(name)

Bases: Storage

An object of this class represents the dataset.

At present, there is no requirement for the type of data, it is simply stored in the dataset.data attribute and further processing will be performed according to the different data types read in.

Parameters

name (str) – the name of the dataset

Examples

dataset = Dataset(‘dataset1’)

dataset.data = np.double(1)

dataset.attrs[‘samplerate’] = 1000

dataset.attrs[‘timestamp’] = ‘2022-06-12 10:39:11’

dataset.set_storage_path(‘test/test_ut_ds.h5’)

dataset.store()

components.dataset.d