preheat_open.measurements.StrMap

class preheat_open.measurements.StrMap(string)

Bases: MapItem

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

Variables:

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

__init__(string)

Methods

__init__(string)

map(component)

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

Attributes

string

map(component)

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

Parameters:

component (Component) – The component to map.

Returns:

The mapped string.

Return type:

str