Skip to content

Module load data

Oliver Rodriguez edited this page Nov 4, 2022 · 1 revision

Module: load_data

Performs common operations on files created by the pypotato library.

potentiostat.Read(text=False, model=False)

Reads a file created with the pypotato library. It is inherited by the rest of the classes.

Methods

*potentiostat.Read.read(text=0, model=0)

  • text: str or False. Text to locate in file to use as starting point to read.
  • model: str or False. Potentiostat model used when creating the files.

*potentiostat.Read.search(text)

  • text: str. Text to locate in file to use as starting point to read.

Returns data: instance

  • i: numpy array. [A] measured current.
  • E: numpy array. [V] measured voltage.
  • t: numpy array. [s] measured time. Optional, available for the Emstat Pico.

potentiostat.XY(fileName='file', folder='.', skiprows=0, delimiter=',', model=0)

Loads a general data file with X and Y columns.

Parameters

  • fileName: str. Filename of the file to read with extension included.
  • folder: str. Directory where the file is located.
  • skiprows: int. Number of rows from the top to skip.
  • delimiter: char. Character used to delimiter columns: ',', ' ', '\t', etc.
  • model: str or False. Potentiostat model used when creating the files.

Returns data: XY instance

  • x: numpy array. [AU] first column.
  • y: numpy array. [AU] rest of the columns.

potentiostat.CV(fileName='file', folder=',', model=0)

Loads a cyclic voltammogram data file obtained with the pypotato library.

Parameters

  • fileName: str. Filename of the file to read with extension included.
  • folder: str. Directory where the file is located.
  • model: str or False. Potentiostat model used when creating the files.

Returns data: CV instance

  • E: numpy array. [V] potential array.
  • i: numpy array. [A] current array.

potentiostat.LSV(fileName='file', folder=',', model=0)

Loads a linear sweep voltammogram data file obtained with the pypotato library.

Parameters

  • fileName: str. Filename of the file to read with extension included.
  • folder: str. Directory where the file is located.
  • model: str or False. Potentiostat model used when creating the files.

Returns data: LSV instance

  • E: numpy array. [V] potential array.
  • i: numpy array. [i] current array.

potentiostat.CA(fileName='file', folder=',', model=0)

Loads a chronoamperogram data file obtained with the pypotato library.

Parameters

  • fileName: str. Filename of the file to read with extension included.
  • folder: str. Directory where the file is located.
  • model: str or False. Potentiostat model used when creating the files.

Returns data: CA instance

  • t: numpy array. [s] time array.
  • i: numpy array. [i] current array.

potentiostat.OCP(fileName='file', folder=',', model=0)

Loads a chronoamperogram data file obtained with the pypotato library.

Parameters

  • fileName: str. Filename of the file to read with extension included.
  • folder: str. Directory where the file is located.
  • model: str or False. Potentiostat model used when creating the files.

Returns data: OCP instance

  • t: numpy array. [s] time array.
  • E: numpy array. [V] potential array.