Mixed Mode

This sublmodule contains the Mixed Mode method and Stage classes.

See this link for an example how to set it up.

pypalmsens.mixed_mode

Classes:

ConstantE

Amperometric detection stage.

Functions:

  • from_stage_type – Create new instance of appropriate stage from its type.

Attributes:

current_limits

current_limits: settings.CurrentLimits = attrs.field(factory=(settings.CurrentLimits))

Set the current limit settings.

potential

potential: float = 0.0

Potential in V.

run_time

run_time: float = 1.0

Run time in s.

from_stage_type

from_stage_type(id)

Create new instance of appropriate stage from its type.

ConstantI

Potentiometry stage.

Functions:

  • from_stage_type – Create new instance of appropriate stage from its type.

Attributes:

potential_limits

potential_limits: settings.PotentialLimits = attrs.field(factory=(settings.PotentialLimits))

Set the potential limit settings

current

current: float = 0.0

The current to apply in the given current range.

Note that this value acts as a multiplier in the applied current range.

So if 10 uA is the applied current range and 1.5 is given as current value, the applied current will be 15 uA.

applied_current_range

applied_current_range: CURRENT_RANGE = CURRENT_RANGE.cr_100_uA

Applied current range.

Use CURRENT_RANGE to define the range.

run_time

run_time: float = 1.0

Run time in s.

from_stage_type

from_stage_type(id)

Create new instance of appropriate stage from its type.

SweepE

Linear sweep detection stage.

Functions:

  • from_stage_type – Create new instance of appropriate stage from its type.

Attributes:

current_limits

current_limits: settings.CurrentLimits = attrs.field(factory=(settings.CurrentLimits))

Set the current limit settings.

begin_potential

begin_potential: float = -0.5

Begin potential in V.

end_potential

end_potential: float = 0.5

End potential in V.

step_potential

step_potential: float = 0.1

Step potential in V.

scanrate

scanrate: float = 1.0

Scan rate in V/s.

from_stage_type

from_stage_type(id)

Create new instance of appropriate stage from its type.

OpenCircuit

Ocp stage.

Functions:

  • from_stage_type – Create new instance of appropriate stage from its type.

Attributes:

potential_limits

potential_limits: settings.PotentialLimits = attrs.field(factory=(settings.PotentialLimits))

Set the potential limit settings

run_time

run_time: float = 1.0

Run time in s.

from_stage_type

from_stage_type(id)

Create new instance of appropriate stage from its type.

Impedance

Electostatic impedance stage.

Functions:

  • from_stage_type – Create new instance of appropriate stage from its type.

Attributes:

run_time

run_time: float = 10.0

Run time in s.

dc_potential

dc_potential: float = 0.0

DC potential in V.

ac_potential

ac_potential: float = 0.01

AC potential in V RMS.

frequency

frequency: float = 50000.0

Frequency in Hz.

min_sampling_time

min_sampling_time: float = 0.5

Minimum sampling time in s.

The instrument will measure at leas 2 sine waves. The sampling time will be automatically adjusted when necessary.

max_equilibration_time

max_equilibration_time: float = 5.0

Max equilibration time in s.

Used as a guard when the frequency drops below 1/max. equilibration time.

from_stage_type

from_stage_type(id)

Create new instance of appropriate stage from its type.

MixedMode

Create mixed mode method parameters.

Functions:

  • to_dict – Return the technique instance as a new key/value dictionary mapping.

  • from_method_id – Create new instance of appropriate technique from method ID.

Attributes:

current_range

current_range: settings.CurrentRange = attrs.field(factory=(settings.CurrentRange), converter=current_converter)

Set the autoranging current.

pretreatment

pretreatment: settings.Pretreatment = attrs.field(factory=(settings.Pretreatment))

Set the pretreatment settings.

post_measurement

post_measurement: settings.PostMeasurement = attrs.field(factory=(settings.PostMeasurement))

Set the post measurement settings.

data_processing

data_processing: settings.DataProcessing = attrs.field(factory=(settings.DataProcessing))

Set the data processing settings.

general

general: settings.General = attrs.field(factory=(settings.General))

Sets general/other settings.

interval_time

interval_time: float = 0.1

Interval time in s.

cycles

cycles: int = 1

Number of times to go through all stages.

stages

stages: list[BaseStage] = attrs.field(factory=list)

List of stages to run through.

to_dict

to_dict()

Return the technique instance as a new key/value dictionary mapping.

from_method_id

from_method_id(id)

Create new instance of appropriate technique from method ID.