pwspy.utility.micromanager.Property

class pwspy.utility.micromanager.Property(value, pType=None)[source]

Bases: pwspy.utility.micromanager.PropertyMap._JsonAble

Represents a single property from a micromanager PropertyMap

pType

The type of the property. may be ‘STRING’, ‘DOUBLE’, or ‘INTEGER’

Type

str

value

The value of the propoerty. Should match the type given in pType

Type

Union[str, int, float, List[Union[str, int, float]]]

encode()[source]

Convert this object to a PropertyMap dictionary.

Return type

dict

static hook(d)[source]

Check if a dictionary represents an instance of this class and return a new instance. If this dict does not match the correct pattern then just return the original dict.