cellpy.readers.instruments.processors.post_processors#

Post-processing methods for instrument loaders.

All methods must implement the following parameters/arguments:

- data: Data
- config_params: ModelParameters

All methods should return the modified Data object.

You can access the individual parameters for the post processor from the config_params.post_processor[<name of post processor>].

Module Contents#

Functions#

convert_date_time_to_datetime(→ cellpy.readers.core.Data)

Convert date_time column to datetime.

convert_step_time_to_timedelta(→ cellpy.readers.core.Data)

Convert step_time to timedelta.

convert_test_time_to_timedelta(→ cellpy.readers.core.Data)

Convert test_time to timedelta.

cumulate_capacity_within_cycle(→ cellpy.readers.core.Data)

Cumulates the capacity within each cycle

date_time_from_test_time(→ cellpy.readers.core.Data)

Add a date_time column (based on the test_time column).

remove_last_if_bad(→ cellpy.readers.core.Data)

Drop the last row if it contains more NaNs than second to last.

rename_headers(→ cellpy.readers.core.Data)

Rename headers to the correct Cellpy headers.

select_columns_to_keep(→ cellpy.readers.core.Data)

Select columns to keep in the raw data.

set_cycle_number_not_zero(→ cellpy.readers.core.Data)

Set cycle number to start from 1 instead of 0.

set_index(→ cellpy.readers.core.Data)

Set index to data_point.

split_capacity(→ cellpy.readers.core.Data)

Split capacity into charge and discharge

split_current(→ cellpy.readers.core.Data)

Split current into positive and negative

Attributes#

ORDERED_POST_PROCESSING_STEPS

convert_date_time_to_datetime(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Convert date_time column to datetime.

convert_step_time_to_timedelta(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Convert step_time to timedelta.

convert_test_time_to_timedelta(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Convert test_time to timedelta.

cumulate_capacity_within_cycle(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Cumulates the capacity within each cycle

date_time_from_test_time(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Add a date_time column (based on the test_time column).

remove_last_if_bad(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Drop the last row if it contains more NaNs than second to last.

rename_headers(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Rename headers to the correct Cellpy headers.

select_columns_to_keep(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Select columns to keep in the raw data.

set_cycle_number_not_zero(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Set cycle number to start from 1 instead of 0.

set_index(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Set index to data_point.

split_capacity(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Split capacity into charge and discharge

split_current(data: cellpy.readers.core.Data, config_params: cellpy.readers.instruments.configurations.ModelParameters) cellpy.readers.core.Data[source]#

Split current into positive and negative

ORDERED_POST_PROCESSING_STEPS = ['get_column_names', 'rename_headers', 'select_columns_to_keep', 'remove_last_if_bad'][source]#