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 column to datetime. |
|
Convert step_time to timedelta. |
|
Convert test_time to timedelta. |
|
Cumulates the capacity within each cycle |
|
Add a date_time column (based on the test_time column). |
|
Drop the last row if it contains more NaNs than second to last. |
|
Rename headers to the correct Cellpy headers. |
|
Select columns to keep in the raw data. |
|
Set cycle number to start from 1 instead of 0. |
|
Set index to data_point. |
|
Split capacity into charge and discharge |
|
Split current into positive and negative |
Attributes#
- 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