Example 3: class CV_Datas and LSV_Datas - Levich Analysis

Download dataset

Start by downloading a test file from github: CV_151512_ 3.tdms CV_151725_ 3.tdms CV_153036_ 3.tdms CV_152150_ 3.tdms CV_152403_ 3.tdms CV_152635_ 3.tdms

and save it an appropriate folder.

Import the class:

   from ec4py import *

Load a file:

   paths = [
   "CV_151512_ 3.tdms",
   "CV_151725_ 3.tdms",
   "CV_153036_ 3.tdms",
   "CV_152150_ 3.tdms",
   "CV_152403_ 3.tdms",
   "CV_152635_ 3.tdms",
]
   datas = CV_Datas(paths)

Datas

   datas.plot(LEGEND.ROT)

Plot of CVs

Select the average sweep and plot the data

   LSVs = datas.get_sweep(AVG)
   LSVs.plot(LEGEND.ROT, savefig="cv_datas_ex3_fig2.png")

Plot of CVs

Levich Analysis

   Epot = -0.5
   slopes = datas.Levich(Epot)
   print(slopes[0] )
   print(slopes[1] )

Plot of CVs

Levich Analysis when normalizing the current to area


   Epot = -0.5
   slopes = datas.Levich(Epot, AREA_CM)
   print(slopes[0] )
   print(slopes[1] )

Plot of CVs