Types of DuTs

Used to flag the dut type for each dut view

class DMT.core.dut_type.DutType[source]

Bases: object

concrete DutTypes to be used for DutViews

bjt = <DMT.core.dut_type.DutTypeInt object>[source]
bulk = <DMT.core.dut_type.DutTypeInt object>[source]
cap = <DMT.core.dut_type.DutTypeInt object>[source]
cap_ac = <DMT.core.dut_type.DutTypeInt object>[source]
deem_bjt = <DMT.core.dut_type.DutTypeInt object>[source]
deem_mos = <DMT.core.dut_type.DutTypeInt object>[source]
deem_open_bjt = <DMT.core.dut_type.DutTypeInt object>[source]
deem_open_mos = <DMT.core.dut_type.DutTypeInt object>[source]
deem_short_bjt = <DMT.core.dut_type.DutTypeInt object>[source]
deem_short_mos = <DMT.core.dut_type.DutTypeInt object>[source]
deemb_struct = <DMT.core.dut_type.DutTypeInt object>[source]
classmethod deserialize(dict_loaded)[source]

Static class method to create a DutType from a loaded dictionary.

Returns:
DutTypeInt or DutTypeFlag

DutType ready to be used.

device = <DMT.core.dut_type.DutTypeInt object>[source]
diode = <DMT.core.dut_type.DutTypeInt object>[source]
dummy = <DMT.core.dut_type.DutTypeInt object>[source]
meas_struct = <DMT.core.dut_type.DutTypeInt object>[source]
mos = <DMT.core.dut_type.DutTypeInt object>[source]
n_mos = <DMT.core.dut_type.DutTypeInt object>[source]
npn = <DMT.core.dut_type.DutTypeInt object>[source]
p_mos = <DMT.core.dut_type.DutTypeInt object>[source]
pin_diode = <DMT.core.dut_type.DutTypeInt object>[source]
pn_diode = <DMT.core.dut_type.DutTypeInt object>[source]
pnp = <DMT.core.dut_type.DutTypeInt object>[source]
res = <DMT.core.dut_type.DutTypeInt object>[source]
tetrode = <DMT.core.dut_type.DutTypeInt object>[source]
tlm = <DMT.core.dut_type.DutTypeInt object>[source]
tlmb = <DMT.core.dut_type.DutTypeInt object>[source]
tlmbc = <DMT.core.dut_type.DutTypeInt object>[source]
tlmc = <DMT.core.dut_type.DutTypeInt object>[source]
transistor = <DMT.core.dut_type.DutTypeInt object>[source]
vdp = <DMT.core.dut_type.DutTypeInt object>[source]
class DMT.core.dut_type.DutTypeFlag(value)[source]

Bases: Flag

Flags which represents most common devices that might need to be handled by DMT

Methods

get_nodes(filename)

Returns the names of the nodes typicall found in the specified DutType

flag_bjt = 512[source]
flag_bjt_deemb = 1024[source]
flag_bulk = 32[source]
flag_cap = 16384[source]
flag_deem = 262144[source]
flag_deemb_struct = 128[source]
flag_device = 16[source]
flag_diode = 8192[source]
flag_meas_struct = 64[source]
flag_mos = 2048[source]
flag_mos_deemb = 4096[source]
flag_open = 1048576[source]
flag_res = 32768[source]
flag_short = 2097152[source]
flag_tetrode = 65536[source]
flag_tlm = 131072[source]
flag_transistor = 256[source]
flag_vdp = 524288[source]
get_nodes()[source]

Return the nodes that are typically found in this DutType. For convenience.

Returns:
nodeslist of strings

List of strings

get_string()[source]

Return the string that describes this DutType.

Returns:
nodesstr

String that describes this DutType.

serialize()[source]

Converts the DutTypeFlag into a dictionary with only strings (ready to be serealized to json)

class DMT.core.dut_type.DutTypeInt(value, *, string, nodes=None)[source]

Bases: object

Class for DutType flags. Adds the nodes attribute to an integer value. This allows direct assignment of nodes to a DutType.

Parameters:
valueint
node[str]

List of nodes.

bit_length()[source]
get_nodes()[source]

Return the nodes that are typically found in this Dut_type. For convenience.

Repeated here just to get rid of the pylint error. The real method is below in the DutType-flag

Returns:
nodeslist of strings

List of strings

get_string()[source]

Return the string that describes this Dut_type.

Returns:
stringstr

the string that describes this object

is_subtype(other)[source]

Test if a device is a subtype of an other device/devicetype

Ignores the flag_subtype!

Parameters:
otherint, DutTypeInt
serialize()[source]

Converts the DutTypeInt into a dictionary with only strings (ready to be serealized to json)