cellpy.readers.instruments.arbin_sql_7#

arbin MS SQL Server data for MITS 7.0

Module Contents#

Classes#

DataLoader

Class for loading arbin-data from MS SQL server.

Functions#

from_arbin_to_datetime(n)

Attributes#

ALLOW_MULTI_TEST_FILE

DEBUG_MODE

ODBC

SEARCH_FOR_ODBC_DRIVERS

SQL_DRIVER

SQL_PWD

SQL_SERVER

SQL_UID

TABLE_NAMES

normal_headers_renaming_dict

summary_headers_renaming_dict

class DataLoader(*args, **kwargs)[source]#

Bases: cellpy.readers.instruments.base.BaseLoader

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

Class for loading arbin-data from MS SQL server.

initiates the ArbinSQLLoader class

name = 'arbin_sql_7'[source]#
static get_headers_aux()[source]#

Defines the so-called auxiliary table column headings for Arbin SQL Server

static get_headers_aux_global()[source]#

Defines the so-called auxiliary global column headings for Arbin SQL Server

static get_headers_global()[source]#

Defines the so-called global column headings for Arbin SQL Server

static get_headers_normal()[source]#

Defines the so-called normal column headings for Arbin SQL Server

static get_raw_limits()[source]#

returns a dictionary with resolution limits

static get_raw_units()[source]#

Units used by the instrument.

The internal cellpy units are given in the cellpy_units attribute.

Returns:

dictionary of units (str)

Example

A minimum viable implementation could look like this:

@staticmethod
def get_raw_units():
    raw_units = dict()
    raw_units["current"] = "A"
    raw_units["charge"] = "Ah"
    raw_units["mass"] = "g"
    raw_units["voltage"] = "V"
    return raw_units
loader(name, **kwargs)[source]#

returns a Data object with loaded data.

Loads data from arbin SQL server db.

Parameters:

name (str) – name of the test

Returns:

new_tests (list of data objects)

from_arbin_to_datetime(n)[source]#
ALLOW_MULTI_TEST_FILE[source]#
DEBUG_MODE[source]#
ODBC[source]#
SEARCH_FOR_ODBC_DRIVERS[source]#
SQL_DRIVER[source]#
SQL_PWD[source]#
SQL_SERVER[source]#
SQL_UID[source]#
TABLE_NAMES[source]#
normal_headers_renaming_dict[source]#
summary_headers_renaming_dict[source]#