cellpy.readers.instruments.neware_txt#

Neware txt data - with explanations how it was implemented.

  1. Update SUPPORTED_MODELS, raw_ext and default_model

  2. Add instrument to prms.py
    1. create the boxed item:

      Neware = {“default_model”: “UIO”} Neware = box.Box(Neware)

    2. add it to Instruments:

      Instruments = InstrumentsClass( … Neware=Neware )

    3. Update the dataclass in prms.py:

      @dataclass class InstrumentsClass(CellPyConfig):

      tester: str custom_instrument_definitions_file: Union[str, None] Arbin: box.Box Maccor: box.Box Neware: box.Box

  3. (optionally) add Neware defaults to .cellpy_prms_default.conf

  4. Create instrument configuration file in readers/instruments/configurations

    formatters states normal_headers_renaming_dict file_info raw_units post_processors

  5. Put a file in test_data and create at least one test.

Module Contents#

Classes#

DataLoader

Class for loading data from Neware txt files.

Attributes#

MUST_HAVE_RAW_COLUMNS

SUPPORTED_MODELS

class DataLoader[source]#

Bases: cellpy.readers.instruments.base.TxtLoader

Inheritance diagram of cellpy.readers.instruments.neware_txt.DataLoader

Class for loading data from Neware txt files.

default_model[source]#
instrument_name = 'neware_txt'[source]#
raw_ext = 'csv'[source]#
supported_models[source]#
static get_headers_aux(raw)[source]#

Defines the so-called auxiliary table column headings

validate(data)[source]#

A simple check that all the needed columns has been successfully loaded and that they get the correct type

MUST_HAVE_RAW_COLUMNS[source]#
SUPPORTED_MODELS[source]#