Skip to content

Fast Cyclic Voltammetry

pypalmsens.FastCyclicVoltammetry


              flowchart TD
              pypalmsens.FastCyclicVoltammetry[FastCyclicVoltammetry]
              pypalmsens._methods.base.BaseTechnique[BaseTechnique]
              pypalmsens._methods.mixins.PretreatmentMixin[PretreatmentMixin]
              pypalmsens._methods.mixins.VersusOCPMixin[VersusOCPMixin]
              pypalmsens._methods.mixins.PostMeasurementMixin[PostMeasurementMixin]
              pypalmsens._methods.mixins.IrDropCompensationMixin[IrDropCompensationMixin]
              pypalmsens._methods.mixins.DataProcessingMixin[DataProcessingMixin]
              pypalmsens._methods.mixins.GeneralMixin[GeneralMixin]
              pypalmsens._methods.base_model.BaseModel[BaseModel]

                              pypalmsens._methods.base.BaseTechnique --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.base.BaseTechnique
                

                pypalmsens._methods.mixins.PretreatmentMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.PretreatmentMixin
                

                pypalmsens._methods.mixins.VersusOCPMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.VersusOCPMixin
                

                pypalmsens._methods.mixins.PostMeasurementMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.PostMeasurementMixin
                

                pypalmsens._methods.mixins.IrDropCompensationMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.IrDropCompensationMixin
                

                pypalmsens._methods.mixins.DataProcessingMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.DataProcessingMixin
                

                pypalmsens._methods.mixins.GeneralMixin --> pypalmsens.FastCyclicVoltammetry
                                pypalmsens._methods.base_model.BaseModel --> pypalmsens._methods.mixins.GeneralMixin
                



              click pypalmsens.FastCyclicVoltammetry href "" "pypalmsens.FastCyclicVoltammetry"
              click pypalmsens._methods.base.BaseTechnique href "" "pypalmsens._methods.base.BaseTechnique"
              click pypalmsens._methods.mixins.PretreatmentMixin href "" "pypalmsens._methods.mixins.PretreatmentMixin"
              click pypalmsens._methods.mixins.VersusOCPMixin href "" "pypalmsens._methods.mixins.VersusOCPMixin"
              click pypalmsens._methods.mixins.PostMeasurementMixin href "" "pypalmsens._methods.mixins.PostMeasurementMixin"
              click pypalmsens._methods.mixins.IrDropCompensationMixin href "" "pypalmsens._methods.mixins.IrDropCompensationMixin"
              click pypalmsens._methods.mixins.DataProcessingMixin href "" "pypalmsens._methods.mixins.DataProcessingMixin"
              click pypalmsens._methods.mixins.GeneralMixin href "" "pypalmsens._methods.mixins.GeneralMixin"
              click pypalmsens._methods.base_model.BaseModel href "" "pypalmsens._methods.base_model.BaseModel"
            

Create fast cyclic voltammetry method parameters.

In Cyclic Voltammetry a cyclic potential scan is performed between two vertex potentials vertex1_potential and vertex2_potential. The scan can start (begin_potential) at one of these vertex potentials or anywhere in between.

A CV becomes a Fast CV if the scan rate in combination with step_potential results in a rate of over 2500 points / second (scan_rate / step_potential > 2500).

Methods:

  • from_dict

    Structure technique instance from dict.

  • from_method_id

    Create new instance of appropriate technique from method ID.

  • to_dict

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

Attributes:

begin_potential class-attribute instance-attribute

begin_potential: float = -0.5

Potential where the scan starts and stops at in V.

current_range class-attribute instance-attribute

current_range: AllowedCurrentRanges = '1uA'

Fixed current range.

See pypalmsens.settings.AllowedCurrentRanges for options.

data_processing class-attribute instance-attribute

data_processing: DataProcessing = Field(default_factory=DataProcessing)

Set the data processing settings.

equilibration_time class-attribute instance-attribute

equilibration_time: float = 0.0

Equilibration time in s.

general class-attribute instance-attribute

general: General = Field(default_factory=General)

Sets general/other settings.

ir_drop_compensation class-attribute instance-attribute

ir_drop_compensation: IrDropCompensation = Field(default_factory=IrDropCompensation)

Set the iR drop compensation settings.

n_avg_scans class-attribute instance-attribute

n_avg_scans: int = 1

The number of scan repetitions for averaging.

In case n_scans is set to a value > 1, each scan in the measurement is the result of an average of multiple scans, where the number of scans averaged is specified with this value.

n_equil_scans class-attribute instance-attribute

n_equil_scans: int = 1

Number of equilibration scans.

During these scans, no data is recorded.

n_scans class-attribute instance-attribute

n_scans: int = 1

Number of repetitions for this scan.

post_measurement class-attribute instance-attribute

post_measurement: PostMeasurement = Field(default_factory=PostMeasurement)

Set the post measurement settings.

pretreatment class-attribute instance-attribute

pretreatment: Pretreatment = Field(default_factory=Pretreatment)

Set the pretreatment settings.

scanrate class-attribute instance-attribute

scanrate: float = 1.0

Scan rate in V/s.

The applicable range depends on the value of step_potential.

step_potential class-attribute instance-attribute

step_potential: float = 0.1

Potential step size in V.

versus_ocp class-attribute instance-attribute

versus_ocp: VersusOCP = Field(default_factory=VersusOCP)

Set the versus OCP settings.

vertex1_potential class-attribute instance-attribute

vertex1_potential: float = 0.5

First potential where direction reverses in V.

vertex2_potential class-attribute instance-attribute

vertex2_potential: float = -0.5

Second potential where direction reverses. V.

from_dict classmethod

from_dict(obj: dict[str, Any]) -> BaseTechnique

Structure technique instance from dict.

Opposite of .to_dict()

Source code in src/pypalmsens/_methods/base.py
35
36
37
38
39
40
@classmethod
def from_dict(cls, obj: dict[str, Any]) -> BaseTechnique:
    """Structure technique instance from dict.

    Opposite of `.to_dict()`"""
    return cls.model_validate(obj)

from_method_id classmethod

from_method_id(id: str) -> BaseTechnique

Create new instance of appropriate technique from method ID.

Source code in src/pypalmsens/_methods/base.py
42
43
44
45
46
@classmethod
def from_method_id(cls, id: str) -> BaseTechnique:
    """Create new instance of appropriate technique from method ID."""
    new = cls._registry[id]
    return new()

to_dict

to_dict() -> dict[str, Any]

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

Source code in src/pypalmsens/_methods/base.py
31
32
33
def to_dict(self) -> dict[str, Any]:
    """Return the technique instance as a new key/value dictionary mapping."""
    return self.model_dump()