sknrf.app.dataviewer.model.mat module

class sknrf.app.dataviewer.model.mat.MATGroup(name, sweeps={}, attributes={}, values={})

Bases: object

A group of MDIF Blocks.

Attributes:
sweepsOrderedDict

dictionary of sweeps.

attributesOrderedDict

dictionary of attributes.

valuesOrderedDict

dictionary of measurement values.

class sknrf.app.dataviewer.model.mat.MAT(name='', dataBlocks=None)

Bases: object

MAT data container.

Attributes:
namestr

filename.

datestr

date/time of creation.

dataBlockslist

list of MDIF Groups containing measurement types.

static read(filename)

Read an MDIF file and store it inside an MDIF container.

Parameters:
filenamestr

filename.

static import_dataset(filename, group_name, num_ports=1, class_=None)

Import an MDIF file into a Dataset.

Parameters:
filenamestr

filename.

group_namestr

MDIF Group name.

num_portsint

Number of ports inside the dataset.

class_object

type cast applied to MDIF container to support derived classes.

static export_dataset(dataset, filename, group_name, mode='w', subset=Ellipsis)
write(filename, mode='w', do_compression=False)

Write an MDIF container to a file.

Parameters:
filenamestr

filename.

modestr

write (‘w’) or append (‘a’)

do_compressionbool

enable data compression. Default is False.