cellpy package
Subpackages
- cellpy.parameters package
- Submodules
- cellpy.parameters.internal_settings module
BaseSettings
CellpyLimits
CellpyUnits
DictLikeClass
HeaderDict
HeadersJournal
HeadersJournal.argument
HeadersJournal.cell_type
HeadersJournal.cellpy_file_name
HeadersJournal.comment
HeadersJournal.experiment
HeadersJournal.filename
HeadersJournal.fixed
HeadersJournal.group
HeadersJournal.instrument
HeadersJournal.label
HeadersJournal.loading
HeadersJournal.mass
HeadersJournal.nom_cap
HeadersJournal.raw_file_names
HeadersJournal.sub_group
HeadersJournal.total_mass
HeadersNormal
HeadersNormal.ac_impedance_txt
HeadersNormal.aci_phase_angle_txt
HeadersNormal.amplitude_txt
HeadersNormal.channel_id_txt
HeadersNormal.charge_capacity_txt
HeadersNormal.charge_energy_txt
HeadersNormal.current_txt
HeadersNormal.cycle_index_txt
HeadersNormal.data_flag_txt
HeadersNormal.data_point_txt
HeadersNormal.datetime_txt
HeadersNormal.discharge_capacity_txt
HeadersNormal.discharge_energy_txt
HeadersNormal.dv_dt_txt
HeadersNormal.frequency_txt
HeadersNormal.internal_resistance_txt
HeadersNormal.is_fc_data_txt
HeadersNormal.power_txt
HeadersNormal.ref_ac_impedance_txt
HeadersNormal.ref_aci_phase_angle_txt
HeadersNormal.ref_voltage_txt
HeadersNormal.step_index_txt
HeadersNormal.step_time_txt
HeadersNormal.sub_step_index_txt
HeadersNormal.sub_step_time_txt
HeadersNormal.test_id_txt
HeadersNormal.test_name_txt
HeadersNormal.test_time_txt
HeadersNormal.voltage_txt
HeadersStepTable
HeadersStepTable.charge
HeadersStepTable.current
HeadersStepTable.cycle
HeadersStepTable.discharge
HeadersStepTable.info
HeadersStepTable.internal_resistance
HeadersStepTable.internal_resistance_change
HeadersStepTable.point
HeadersStepTable.rate_avr
HeadersStepTable.step
HeadersStepTable.step_time
HeadersStepTable.sub_step
HeadersStepTable.sub_type
HeadersStepTable.test
HeadersStepTable.test_time
HeadersStepTable.type
HeadersStepTable.ustep
HeadersStepTable.voltage
HeadersSummary
HeadersSummary.areal_charge_capacity
HeadersSummary.areal_discharge_capacity
HeadersSummary.channel_id
HeadersSummary.charge_c_rate
HeadersSummary.charge_capacity
HeadersSummary.charge_capacity_loss
HeadersSummary.charge_capacity_raw
HeadersSummary.coulombic_difference
HeadersSummary.coulombic_efficiency
HeadersSummary.cumulated_charge_capacity
HeadersSummary.cumulated_charge_capacity_loss
HeadersSummary.cumulated_coulombic_difference
HeadersSummary.cumulated_coulombic_efficiency
HeadersSummary.cumulated_discharge_capacity
HeadersSummary.cumulated_discharge_capacity_loss
HeadersSummary.cumulated_ric
HeadersSummary.cumulated_ric_disconnect
HeadersSummary.cumulated_ric_sei
HeadersSummary.cycle_index
HeadersSummary.data_flag
HeadersSummary.data_point
HeadersSummary.datetime
HeadersSummary.discharge_c_rate
HeadersSummary.discharge_capacity
HeadersSummary.discharge_capacity_loss
HeadersSummary.discharge_capacity_raw
HeadersSummary.end_voltage_charge
HeadersSummary.end_voltage_discharge
HeadersSummary.high_level
HeadersSummary.ir_charge
HeadersSummary.ir_discharge
HeadersSummary.low_level
HeadersSummary.normalized_charge_capacity
HeadersSummary.normalized_cycle_index
HeadersSummary.normalized_discharge_capacity
HeadersSummary.ocv_first_max
HeadersSummary.ocv_first_min
HeadersSummary.ocv_second_max
HeadersSummary.ocv_second_min
HeadersSummary.pre_aux
HeadersSummary.shifted_charge_capacity
HeadersSummary.shifted_discharge_capacity
HeadersSummary.temperature_last
HeadersSummary.temperature_mean
HeadersSummary.test_name
HeadersSummary.test_time
InstrumentSettings
get_cellpy_units()
get_default_cellpy_file_raw_units()
get_default_custom_headers_summary()
get_default_output_units()
get_default_raw_limits()
get_default_raw_units()
get_headers_journal()
get_headers_normal()
get_headers_step_table()
get_headers_summary()
- cellpy.parameters.prmreader module
- cellpy.parameters.prms module
BatchClass
CellPyConfig
CellPyDataConfig
DataSetClass
DbClass
DbColsClass
DbColsClass.active_material
DbColsClass.argument
DbColsClass.batch
DbColsClass.cell_name
DbColsClass.cell_type
DbColsClass.cellpy_file_name
DbColsClass.comment_cell
DbColsClass.comment_general
DbColsClass.comment_slurry
DbColsClass.exists
DbColsClass.experiment_type
DbColsClass.file_name_indicator
DbColsClass.freeze
DbColsClass.group
DbColsClass.id
DbColsClass.instrument
DbColsClass.label
DbColsClass.loading
DbColsClass.nom_cap
DbColsClass.project
DbColsClass.raw_file_names
DbColsClass.selected
DbColsClass.sub_batch_01
DbColsClass.sub_batch_02
DbColsClass.sub_batch_03
DbColsClass.sub_batch_04
DbColsClass.sub_batch_05
DbColsClass.sub_batch_06
DbColsClass.sub_batch_07
DbColsClass.total_material
FileNamesClass
InstrumentsClass
MaterialsClass
PathsClass
ReaderClass
ReaderClass.auto_dirs
ReaderClass.capacity_interpolation_step
ReaderClass.cycle_mode
ReaderClass.daniel_number
ReaderClass.diagnostics
ReaderClass.ensure_step_table
ReaderClass.filestatuschecker
ReaderClass.force_all
ReaderClass.force_step_table_creation
ReaderClass.limit_loaded_cycles
ReaderClass.load_only_summary
ReaderClass.select_minimal
ReaderClass.sep
ReaderClass.sorted_data
ReaderClass.time_interpolation_step
ReaderClass.use_cellpy_stat_file
ReaderClass.voltage_interpolation_step
- Module contents
- cellpy.readers package
- Subpackages
- cellpy.readers.instruments package
- Submodules
- cellpy.readers.instruments.arbin module
- cellpy.readers.instruments.custom module
- cellpy.readers.instruments.biologics_mpr module
- cellpy.readers.instruments.base module
AtomicLoad
AutoLoader
AutoLoader.get_headers_aux()
AutoLoader.get_raw_limits()
AutoLoader.get_raw_units()
AutoLoader.loader()
AutoLoader.name
AutoLoader.parse_formatter_parameters()
AutoLoader.parse_loader_parameters()
AutoLoader.parse_meta()
AutoLoader.pre_init()
AutoLoader.query_file()
AutoLoader.register_configuration()
AutoLoader.validate()
BaseLoader
TxtLoader
find_delimiter_and_start()
query_csv()
- cellpy.readers.instruments.pec module
- cellpy.readers.instruments.maccor module
- cellpy.readers.instruments.processors module
- pre-processors
- post-processors
convert_date_time_to_datetime()
convert_step_time_to_timedelta()
convert_test_time_to_timedelta()
convert_units()
cumulate_capacity_within_cycle()
date_time_from_test_time()
get_column_names()
remove_last_if_bad()
rename_headers()
replace()
select_columns_to_keep()
set_cycle_number_not_zero()
set_index()
split_capacity()
split_current()
- Module contents
- cellpy.readers.instruments package
- Submodules
- cellpy.readers.cellreader module
CellpyData
CellpyData.cells
CellpyData.cell
CellpyData.check()
CellpyData.check_file_ids()
CellpyData.cycle_mode
CellpyData.dataset
CellpyData.dev_update()
CellpyData.dev_update_from_raw()
CellpyData.dev_update_loadcell()
CellpyData.dev_update_make_steps()
CellpyData.dev_update_make_summary()
CellpyData.dev_update_merge()
CellpyData.drop_edges()
CellpyData.drop_from()
CellpyData.drop_to()
CellpyData.empty
CellpyData.from_raw()
CellpyData.from_res()
CellpyData.get_cap()
CellpyData.get_ccap()
CellpyData.get_cell()
CellpyData.get_converter_to_specific()
CellpyData.get_current()
CellpyData.get_cycle_numbers()
CellpyData.get_cycle_numbers_old()
CellpyData.get_datetime()
CellpyData.get_dcap()
CellpyData.get_diagnostics_plots()
CellpyData.get_ir()
CellpyData.get_mass()
CellpyData.get_number_of_cycles()
CellpyData.get_number_of_tests()
CellpyData.get_ocv()
CellpyData.get_step_numbers()
CellpyData.get_summary()
CellpyData.get_timestamp()
CellpyData.get_voltage()
CellpyData.initialize()
CellpyData.inspect_nominal_capacity()
CellpyData.is_empty()
CellpyData.link()
CellpyData.load()
CellpyData.load_step_specifications()
CellpyData.loadcell()
CellpyData.make_step_table()
CellpyData.make_summary()
CellpyData.merge()
CellpyData.old_load()
CellpyData.partial_load()
CellpyData.populate_step_dict()
CellpyData.print_steps()
CellpyData.raw_units
CellpyData.register_instrument_readers()
CellpyData.save()
CellpyData.select_steps()
CellpyData.set_cellnumber()
CellpyData.set_cellpy_datadir()
CellpyData.set_col_first()
CellpyData.set_dataset_number_force()
CellpyData.set_instrument()
CellpyData.set_mass()
CellpyData.set_nom_cap()
CellpyData.set_raw_datadir()
CellpyData.set_tot_mass()
CellpyData.sget_current()
CellpyData.sget_step_numbers()
CellpyData.sget_steptime()
CellpyData.sget_timestamp()
CellpyData.sget_voltage()
CellpyData.split()
CellpyData.split_many()
CellpyData.to_csv()
CellpyData.vacant()
check_cellpy_file()
check_raw()
get()
- cellpy.readers.core module
- cellpy.readers.dbreader module
DbSheetCols
Reader
Reader.extract_date_from_cell_name()
Reader.filter_by_col()
Reader.filter_by_col_value()
Reader.filter_by_slurry()
Reader.filter_selected()
Reader.get_all()
Reader.get_areal_loading()
Reader.get_args()
Reader.get_by_column_label()
Reader.get_cell_name()
Reader.get_cell_type()
Reader.get_comment()
Reader.get_experiment_type()
Reader.get_fileid()
Reader.get_group()
Reader.get_instrument()
Reader.get_label()
Reader.get_loading()
Reader.get_mass()
Reader.get_nom_cap()
Reader.get_total_mass()
Reader.inspect_exists()
Reader.inspect_hd5f_fixed()
Reader.intersect()
Reader.pick_table()
Reader.print_serial_number_info()
Reader.select_all()
Reader.select_batch()
Reader.select_serial_number_row()
Reader.subtract()
Reader.subtract_many()
Reader.union()
- cellpy.readers.filefinder module
- Module contents
- Subpackages
- cellpy.utils package
- Subpackages
- cellpy.utils.batch_tools package
- Submodules
- cellpy.utils.batch_tools.batch_analyzers module
BaseSummaryAnalyzer
EISAnalyzer
ICAAnalyzer
OCVRelaxationAnalyzer
OCVRelaxationAnalyzer.selection_method
OCVRelaxationAnalyzer.number_of_points
OCVRelaxationAnalyzer.interval
OCVRelaxationAnalyzer.relative_voltage
OCVRelaxationAnalyzer.report_times
OCVRelaxationAnalyzer.direction
OCVRelaxationAnalyzer.dframe
OCVRelaxationAnalyzer.do()
OCVRelaxationAnalyzer.do2()
OCVRelaxationAnalyzer.last
OCVRelaxationAnalyzer.ocv_points_engine()
OCVRelaxationAnalyzer.run_dumper()
OCVRelaxationAnalyzer.run_engine()
OCVRelaxationAnalyzer.screen_dumper()
- cellpy.utils.batch_tools.batch_core module
BaseAnalyzer
BaseExperiment
BaseExporter
BaseJournal
BaseJournal.pages
BaseJournal.name
BaseJournal.project
BaseJournal.file_name
BaseJournal.project_dir
BaseJournal.batch_dir
BaseJournal.raw_dir
BaseJournal.create()
BaseJournal.from_db()
BaseJournal.from_file()
BaseJournal.generate_file_name()
BaseJournal.packable
BaseJournal.paginate()
BaseJournal.to_file()
BasePlotter
BaseReporter
Data
Doer
- cellpy.utils.batch_tools.batch_experiments module
CyclingExperiment
CyclingExperiment.force_cellpy
CyclingExperiment.force_raw
CyclingExperiment.save_cellpy
CyclingExperiment.accept_errors
CyclingExperiment.all_in_memory
CyclingExperiment.export_cycles
CyclingExperiment.shifted_cycles
CyclingExperiment.export_raw
CyclingExperiment.export_ica
CyclingExperiment.last_cycle
CyclingExperiment.selected_summaries
CyclingExperiment.errors
CyclingExperiment.cell_names
CyclingExperiment.export_cellpy_files()
CyclingExperiment.link()
CyclingExperiment.recalc()
CyclingExperiment.status()
CyclingExperiment.update()
ImpedanceExperiment
LifeTimeExperiment
- cellpy.utils.batch_tools.batch_exporters module
- cellpy.utils.batch_tools.batch_helpers module
- cellpy.utils.batch_tools.batch_journals module
LabJournal
LabJournal.add_cell()
LabJournal.add_comment()
LabJournal.create_empty_pages()
LabJournal.from_db()
LabJournal.from_file()
LabJournal.from_file_old()
LabJournal.from_frame()
LabJournal.generate_empty_session()
LabJournal.generate_file_name()
LabJournal.generate_folder_names()
LabJournal.get_cell()
LabJournal.get_column()
LabJournal.look_for_file()
LabJournal.paginate()
LabJournal.read_journal_excel_file()
LabJournal.read_journal_jason_file()
LabJournal.remove_cell()
LabJournal.remove_comment()
LabJournal.to_file()
LabJournal.view_comments()
- cellpy.utils.batch_tools.batch_plotters module
- cellpy.utils.batch_tools.batch_reporters module
- cellpy.utils.batch_tools.dumpers module
- cellpy.utils.batch_tools.engines module
- Module contents
- cellpy.utils.batch_tools package
- Submodules
- cellpy.utils.batch module
Batch
Batch.cell_names
Batch.cell_raw_headers
Batch.cell_step_headers
Batch.cell_summary_headers
Batch.cells
Batch.combine_summaries()
Batch.create_folder_structure()
Batch.create_journal()
Batch.drop()
Batch.duplicate_cellpy_files()
Batch.duplicate_journal()
Batch.export_cellpy_files()
Batch.export_journal()
Batch.info_file
Batch.journal
Batch.journal_name
Batch.labels
Batch.link()
Batch.load()
Batch.make_summaries()
Batch.name
Batch.pages
Batch.paginate()
Batch.plot_summaries()
Batch.recalc()
Batch.report()
Batch.save_journal()
Batch.show_pages()
Batch.summaries
Batch.summary_headers
Batch.update()
Batch.view
from_journal()
init()
iterate_batches()
load_pages()
process_batch()
- cellpy.utils.diagnostics module
- cellpy.utils.helpers module
add_areal_capacity()
add_c_rate()
add_normalized_capacity()
add_normalized_cycle_index()
concatenate_summaries()
create_rate_column()
load_and_save_resfile()
make_new_cell()
remove_first_cycles_from_summary()
remove_last_cycles_from_summary()
remove_outliers_from_summary_on_index()
remove_outliers_from_summary_on_nn_distance()
remove_outliers_from_summary_on_value()
remove_outliers_from_summary_on_window()
remove_outliers_from_summary_on_zscore()
select_summary_based_on_rate()
split_experiment()
update_journal_cellpy_data_dir()
yank_after()
yank_before()
yank_outliers()
- cellpy.utils.example_data
- cellpy.utils.ica module
- cellpy.utils.live module (not implemented yet)
- cellpy.utils.ocv_rlx module
MultiCycleOcvFit
MultiCycleOcvFit.get_best_fit_data()
MultiCycleOcvFit.get_best_fit_parameters()
MultiCycleOcvFit.get_best_fit_parameters_grouped()
MultiCycleOcvFit.get_best_fit_parameters_translated()
MultiCycleOcvFit.get_best_fit_parameters_translated_grouped()
MultiCycleOcvFit.get_fit_cycles()
MultiCycleOcvFit.plot_summary()
MultiCycleOcvFit.plot_summary_translated()
MultiCycleOcvFit.run_fitting()
MultiCycleOcvFit.set_cycles()
MultiCycleOcvFit.set_data()
OcvFit
OcvFit.create_model()
OcvFit.fit_model()
OcvFit.get_best_fit_data()
OcvFit.get_best_fit_parameters()
OcvFit.get_best_fit_parameters_translated()
OcvFit.get_result()
OcvFit.reset_weights()
OcvFit.run_fit()
OcvFit.set_cellpydata()
OcvFit.set_circuits()
OcvFit.set_data()
OcvFit.set_weights()
OcvFit.set_weights_power_law()
OcvFit.set_zero_current()
OcvFit.set_zero_voltage()
select_ocv_points()
- cellpy.utils.plotutils module
- cellpy.utils.easyplot module
EasyPlot
EasyPlot.fill_input()
EasyPlot.fix_cap_from_rc()
EasyPlot.fix_cyclelife()
EasyPlot.fix_dqdv()
EasyPlot.fix_gc()
EasyPlot.fix_gc_and_dqdv()
EasyPlot.give_color()
EasyPlot.give_fig()
EasyPlot.handle_outpath()
EasyPlot.plot()
EasyPlot.plot_cap_from_rc()
EasyPlot.plot_cyclelife()
EasyPlot.plot_dQdV()
EasyPlot.plot_gc()
EasyPlot.plot_gc_and_dQdV()
EasyPlot.save_fig()
EasyPlot.set_arbin_sql_credentials()
EasyPlot.verify_input()
get_effective_C_rates()
get_effective_C_rates_and_caps()
help()
main()
- Module contents
- Subpackages
Submodules
cellpy.cli module
- cellpy.cli.function_new(template, directory, local_user_template, serve_, run_, lab, list_)[source]
Set up a batch experiment.
cellpy.exceptions module
Exceptions defined within cellpy
- exception cellpy.exceptions.ConfigFileNotRead[source]
Bases:
Error
Raised when the configuration file cannot be read
- exception cellpy.exceptions.ConfigFileNotWritten[source]
Bases:
Error
Raised when the configuration file cannot be written
- exception cellpy.exceptions.DeprecatedFeature[source]
Bases:
Error
Raised when the feature is recently deprecated
- exception cellpy.exceptions.FileNotFound[source]
Bases:
Error
Raised when the given file is not found
- exception cellpy.exceptions.NoCellFound[source]
Bases:
Error
Raised when there are no cells, but a cell is needed.
- exception cellpy.exceptions.NullData[source]
Bases:
Error
Raised when required data is missing (e.g. voltage = None or summary_frames are missing)
cellpy.log module
Set up logger instance
- cellpy.log.setup_logging(default_json_path=None, default_level=None, env_key='LOG_CFG', custom_log_dir=None, reset_big_log=False, max_size=5000000, testing=False)[source]
Setup logging configuration.
- Parameters
default_level – default log-level to screen (std.out).
default_json_path – path to config file for setting up logging.
env_key (str) – use this environment prm to try to get default_json_path.
custom_log_dir – path for saving logs.
reset_big_log (bool) – reset log if too big (max_size).
max_size (int) – if reset_log, this is the max limit.
testing (bool) – set as True if testing, and you don’t want to create any .log files
Module contents
- cellpy.get(filename=None, mass=None, instrument=None, instrument_file=None, nominal_capacity=None, logging_mode=None, cycle_mode=None, auto_summary=True, testing=False, **kwargs)[source]
Create a CellpyData object
- Parameters
filename (str, os.PathLike, or list of raw-file names) – path to file(s)
mass (float) – mass of active material (mg) (defaults to mass given in cellpy-file or 1.0)
instrument (str) – instrument to use (defaults to the one in your cellpy config file)
instrument_file (str or path) – yaml file for custom file type
nominal_capacity (float) – nominal capacity for the cell (e.g. used for finding C-rates)
logging_mode (str) – “INFO” or “DEBUG”
cycle_mode (str) – the cycle mode (e.g. “anode” or “full_cell”)
auto_summary (bool) – (re-) create summary.
testing (bool) – set to True if testing (will for example prevent making .log files)
**kwargs – sent to the loader
- Returns
CellpyData object (if successful, None if not)