Skip to content

Allowed settings

For type checking, PyPalmSens uses Literal strings to define the allowed settings, such as supported current and potential ranges.

pypalmsens.settings.AllowedCurrentRanges module-attribute

AllowedCurrentRanges = Literal['100pA', '1nA', '10nA', '100nA', '1uA', '10uA', '100uA', '1mA', '10mA', '100mA', '2uA', '4uA', '8uA', '16uA', '32uA', '63uA', '125uA', '250uA', '500uA', '5mA', '6uA', '13uA', '25uA', '50uA', '200uA', '1A']

pypalmsens.settings.AllowedDeviceState module-attribute

AllowedDeviceState = Literal['Unknown', 'Idle', 'Measurement', 'Download', 'Pretreatment', 'Error', 'MeasOCP']

pypalmsens.settings.AllowedPotentialRanges module-attribute

AllowedPotentialRanges = Literal['1mV', '10mV', '20mV', '50mV', '100mV', '200mV', '500mV', '1V']

pypalmsens.settings.AllowedReadingStatus module-attribute

AllowedReadingStatus = Literal['OK', 'Overload', 'Underload', 'OverloadWarning']

pypalmsens.settings.AllowedTimingStatus module-attribute

AllowedTimingStatus = Literal['Unknown', 'OK', 'OverStep']