preheat_open.measurements.AttrMap

class preheat_open.measurements.AttrMap(attribute)

Bases: MapItem

Maps a component to a string based on a specified attribute.

Variables:

attribute (str) – The attribute to use for mapping.

__init__(attribute)

Methods

__init__(attribute)

map(component)

Maps a component to a string based on the specified attribute.

Attributes

attribute

map(component)

Maps a component to a string based on the specified attribute.

Parameters:

component (Component) – The component to map.

Returns:

The mapped string.

Return type:

str