Method settings
pypalmsens.settings
This module contains the public api for classes for method configuration.
Classes:
-
CurrentRange – Set the autoranging current for a given method.
-
PotentialRange – Set the autoranging potential for a given method.
-
Pretreatment – Set the pretreatment settings for a given method.
-
VersusOCP – Set the versus OCP settings for a given method.
-
BiPot – Set the bipot settings for a given method.
-
ELevel – Create a multi-step amperometry level method object.
-
PostMeasurement – Set the post measurement settings for a given method.
-
CurrentLimits – Set the limit settings for a given method.
-
PotentialLimits – Set the limit settings for a given method.
-
ChargeLimits – Set the charge limit settings for a given method.
-
IrDropCompensation – Set the iR drop compensation settings for a given method.
-
EquilibrationTriggers – Set the trigger at equilibration settings for a given method.
-
MeasurementTriggers – Set the trigger at measurement settings for a given method.
-
Multiplexer – Set the multiplexer settings for a given method.
-
DataProcessing – Set the data processing settings for a given method.
-
General – Sets general/other settings for a given method.
CurrentRange
Set the autoranging current for a given method.
Attributes:
-
max (CURRENT_RANGE) – Maximum current range.
-
min (CURRENT_RANGE) – Minimum current range.
-
start (CURRENT_RANGE) – Start current range.
max
max: CURRENT_RANGE = CURRENT_RANGE.cr_10_mA
Maximum current range.
Use CURRENT_RANGE
to define the range.
PotentialRange
Set the autoranging potential for a given method.
Attributes:
-
max (POTENTIAL_RANGE) – Maximum potential range.
-
min (POTENTIAL_RANGE) – Minimum potential range.
-
start (POTENTIAL_RANGE) – Start potential range.
max
max: POTENTIAL_RANGE = POTENTIAL_RANGE.pr_1_V
Maximum potential range.
Use POTENTIAL_RANGE
to define the range.
Pretreatment
Set the pretreatment settings for a given method.
Attributes:
-
deposition_potential (float) – Deposition potential in V
-
deposition_time (float) – Deposition time in s
-
conditioning_potential (float) – Conditioning potential in V
-
conditioning_time (float) – Conditioning time in s
VersusOCP
Set the versus OCP settings for a given method.
Attributes:
-
max_ocp_time (float) – Maximum OCP time in s
-
stability_criterion (int) – Stability criterion (potential/time) in mV/s.
BiPot
Set the bipot settings for a given method.
Attributes:
-
mode (link:#typing.Literal[‘constant’, ‘offset’]) – Set the bipotential mode.
-
current_range_max (CURRENT_RANGE) – Maximum bipotential current range in mA.
-
current_range_min (CURRENT_RANGE) – Minimum bipotential current range.
-
current_range_start (CURRENT_RANGE) – Start bipotential current range.
mode
mode: Literal['constant', 'offset'] = 'constant'
Set the bipotential mode.
Possible values: constant
or offset
current_range_max
current_range_max: CURRENT_RANGE = CURRENT_RANGE.cr_10_mA
Maximum bipotential current range in mA.
Use CURRENT_RANGE
to define the range.
ELevel
ELevel(level=0.0, duration=1.0, record=True, use_limit_current_max=False, limit_current_max=0.0, use_limit_current_min=False, limit_current_min=0.0, trigger_at_level=False, trigger_at_level_lines=(False, False, False, False))
Create a multi-step amperometry level method object.
Functions:
-
to_psobj –
-
from_psobj – Construct ELevel dataclass from PalmSens.Techniques.ELevel object.
Attributes:
-
use_limit_current_max (bool) – Use limit current max.
-
limit_current_max (float) – Limit current max in µA.
-
use_limit_current_min (bool) – Use limit current min.
-
limit_current_min (float) – Limit current min in µA.
-
trigger_at_level (bool) – Use trigger at level.
-
trigger_at_level_lines ([link:#bool">bool, bool, bool, link:#bool]) – Trigger at level lines.
PostMeasurement
Set the post measurement settings for a given method.
Attributes:
-
cell_on_after_measurement (bool) – Enable/disable cell after measurement.
-
standby_potential (float) – Standby potential (V) for use with cell on after measurement.
-
standby_time (float) – Standby time (s) for use with cell on after measurement.
cell_on_after_measurement
cell_on_after_measurement: bool = False
Enable/disable cell after measurement.
CurrentLimits
Set the limit settings for a given method.
Attributes:
-
use_limit_max (bool) – Use limit current max.
-
use_limit_min (bool) – Use limit current min.
use_limit_max
use_limit_max: bool = False
Use limit current max.
This will reverse the scan instead of aborting measurement.
PotentialLimits
Set the limit settings for a given method.
Attributes:
-
use_limit_max (bool) – Use limit potential max.
-
use_limit_min (bool) – Use limit potential min.
ChargeLimits
Set the charge limit settings for a given method.
Attributes:
-
use_limit_max (bool) – Use limit charge max.
-
use_limit_min (bool) – Use limit charge min.
IrDropCompensation
Set the iR drop compensation settings for a given method.
Attributes:
-
ir_compensation (float) – Set the iR compensation in Ω
EquilibrationTriggers
Set the trigger at equilibration settings for a given method.
Attributes:
MeasurementTriggers
Set the trigger at measurement settings for a given method.
Attributes:
Multiplexer
Set the multiplexer settings for a given method.
Attributes:
-
mode (link:#typing.Literal[‘none’, ‘consecutive’, ‘alternate’]) – Set multiplexer mode.
-
channels (link:#list[link:#int]) – Set multiplexer channels
-
connect_sense_to_working_electrode (bool) – Connect the sense electrode to the working electrode. Default is False.
-
combine_reference_and_counter_electrodes (bool) – Combine the reference and counter electrodes. Default is False.
-
use_channel_1_reference_and_counter_electrodes (bool) – Use channel 1 reference and counter electrodes for all working electrodes. Default is False.
-
set_unselected_channel_working_electrode (int) – Set the unselected channel working electrode to 0 = Disconnected / floating, 1 = Ground, 2 = Standby potential. Default is 0.
mode
mode: Literal['none', 'consecutive', 'alternate'] = 'none'
Set multiplexer mode.
Possible values:
-
‘none’ = No multiplexer (disable)
-
’consecutive
-
’alternate
channels
channels: list[int] = attrs.field(factory=list)
Set multiplexer channels
This is defined as a list of indexes for which channels to enable (max 128). For example, [0,3,7]. In consecutive mode all selections are valid.
In alternating mode the first channel must be selected and all other channels should be consecutive i.e. (channel 1, channel 2, channel 3 and so on).
connect_sense_to_working_electrode
connect_sense_to_working_electrode: bool = False
Connect the sense electrode to the working electrode. Default is False.
combine_reference_and_counter_electrodes
combine_reference_and_counter_electrodes: bool = False
Combine the reference and counter electrodes. Default is False.
DataProcessing
Set the data processing settings for a given method.
Attributes:
-
smooth_level (int) – Set the default curve post processing filter.
-
min_height (float) – Determines the minimum peak height in µA for peak finding.
-
min_width (float) – The minimum peak width for peak finding.
smooth_level
smooth_level: int = 0
Set the default curve post processing filter.
Possible values:
-
-1 = no filter
-
0 = spike rejection
-
1 = spike rejection + Savitsky-golay window 5
-
2 = spike rejection + Savitsky-golay window 9
-
3 = spike rejection + Savitsky-golay window 15
-
4 = spike rejection + Savitsky-golay window 25
General
Sets general/other settings for a given method.
Attributes:
-
save_on_internal_storage (bool) – Save on internal storage.
-
use_hardware_sync (bool) – Use hardware synchronization with other channels/instruments.
-
notes (str) – Add some user notes for use with this technique.
-
power_frequency (link:#typing.Literal[50, 60]) – Set the DC mains filter in Hz.