cellpy package
Subpackages
- cellpy.internals package
- Submodules
- cellpy.internals.core module
ExternalStatResult
OtherPath
OtherPath.absolute()
OtherPath.anchor
OtherPath.as_posix()
OtherPath.as_uri()
OtherPath.chmod()
OtherPath.copy()
OtherPath.cwd()
OtherPath.drive
OtherPath.exists()
OtherPath.expanduser()
OtherPath.full_path
OtherPath.glob()
OtherPath.group()
OtherPath.home()
OtherPath.is_absolute()
OtherPath.is_block_device()
OtherPath.is_char_device()
OtherPath.is_dir()
OtherPath.is_external
OtherPath.is_fifo()
OtherPath.is_file()
OtherPath.is_mount()
OtherPath.is_relative_to()
OtherPath.is_reserved()
OtherPath.is_socket()
OtherPath.is_symlink()
OtherPath.iterdir()
OtherPath.joinpath()
OtherPath.lchmod()
OtherPath.link_to()
OtherPath.listdir()
OtherPath.location
OtherPath.lstat()
OtherPath.match()
OtherPath.mkdir()
OtherPath.name
OtherPath.open()
OtherPath.original
OtherPath.owner
OtherPath.parent
OtherPath.parents
OtherPath.parts
OtherPath.pathlike_location
OtherPath.raw_path
OtherPath.read_bytes()
OtherPath.read_text()
OtherPath.readlink()
OtherPath.relative_to()
OtherPath.rename()
OtherPath.replace()
OtherPath.resolve()
OtherPath.rglob()
OtherPath.rmdir()
OtherPath.root
OtherPath.samefile()
OtherPath.stat()
OtherPath.stem
OtherPath.suffix
OtherPath.suffixes
OtherPath.symlink_to()
OtherPath.touch()
OtherPath.unlink()
OtherPath.uri_prefix
OtherPath.with_name()
OtherPath.with_stem()
OtherPath.with_suffix()
OtherPath.write_bytes()
OtherPath.write_text()
- Module contents
- cellpy.parameters package
- Subpackages
- Submodules
- cellpy.parameters.internal_settings module
BaseHeaders
BaseSettings
CellpyLimits
CellpyMeta
CellpyMetaCommon
CellpyMetaCommon.active_electrode_area
CellpyMetaCommon.active_electrode_current_collector
CellpyMetaCommon.active_electrode_thickness
CellpyMetaCommon.active_electrode_type
CellpyMetaCommon.cell_name
CellpyMetaCommon.cell_type
CellpyMetaCommon.cellpy_file_version
CellpyMetaCommon.comment
CellpyMetaCommon.counter_electrode_type
CellpyMetaCommon.electrolyte_type
CellpyMetaCommon.electrolyte_volume
CellpyMetaCommon.experiment_type
CellpyMetaCommon.file_errors
CellpyMetaCommon.mass
CellpyMetaCommon.material
CellpyMetaCommon.nom_cap
CellpyMetaCommon.nom_cap_specifics
CellpyMetaCommon.raw_id
CellpyMetaCommon.reference_electrode_current_collector
CellpyMetaCommon.reference_electrode_type
CellpyMetaCommon.separator_type
CellpyMetaCommon.start_datetime
CellpyMetaCommon.tester_ID
CellpyMetaCommon.tester_calibration_date
CellpyMetaCommon.tester_client_software_version
CellpyMetaCommon.tester_server_software_version
CellpyMetaCommon.time_zone
CellpyMetaCommon.tot_mass
CellpyMetaIndividualTest
CellpyMetaIndividualTest.channel_index
CellpyMetaIndividualTest.creator
CellpyMetaIndividualTest.cycle_mode
CellpyMetaIndividualTest.schedule_file_name
CellpyMetaIndividualTest.test_ID
CellpyMetaIndividualTest.test_type
CellpyMetaIndividualTest.voltage_lim_high
CellpyMetaIndividualTest.voltage_lim_low
CellpyUnits
CellpyUnits.area
CellpyUnits.charge
CellpyUnits.current
CellpyUnits.energy
CellpyUnits.frequency
CellpyUnits.length
CellpyUnits.mass
CellpyUnits.nominal_capacity
CellpyUnits.power
CellpyUnits.pressure
CellpyUnits.resistance
CellpyUnits.specific_areal
CellpyUnits.specific_gravimetric
CellpyUnits.specific_volumetric
CellpyUnits.temperature
CellpyUnits.time
CellpyUnits.update()
CellpyUnits.voltage
CellpyUnits.volume
DictLikeClass
HeaderDict
HeadersJournal
HeadersJournal.area
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.postfixes
HeadersSummary.pre_aux
HeadersSummary.shifted_charge_capacity
HeadersSummary.shifted_discharge_capacity
HeadersSummary.specific_columns
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
CellInfoClass
CellInfoClass.active_electrode_area
CellInfoClass.active_electrode_current_collector
CellInfoClass.active_electrode_thickness
CellInfoClass.active_electrode_type
CellInfoClass.cell_type
CellInfoClass.comment
CellInfoClass.counter_electrode_type
CellInfoClass.electrolyte_type
CellInfoClass.electrolyte_volume
CellInfoClass.experiment_type
CellInfoClass.reference_electrode_current_collector
CellInfoClass.reference_electrode_type
CellInfoClass.separator_type
CellInfoClass.voltage_lim_high
CellInfoClass.voltage_lim_low
CellPyConfig
CellPyDataConfig
DbClass
DbColsClass
DbColsClass.area
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.mass_active
DbColsClass.mass_total
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
DbColsUnitClass
DbColsUnitClass.area
DbColsUnitClass.argument
DbColsUnitClass.batch
DbColsUnitClass.cell_name
DbColsUnitClass.cell_type
DbColsUnitClass.cellpy_file_name
DbColsUnitClass.comment_cell
DbColsUnitClass.comment_general
DbColsUnitClass.comment_slurry
DbColsUnitClass.exists
DbColsUnitClass.experiment_type
DbColsUnitClass.file_name_indicator
DbColsUnitClass.freeze
DbColsUnitClass.group
DbColsUnitClass.id
DbColsUnitClass.instrument
DbColsUnitClass.label
DbColsUnitClass.loading
DbColsUnitClass.mass_active
DbColsUnitClass.mass_total
DbColsUnitClass.nom_cap
DbColsUnitClass.project
DbColsUnitClass.raw_file_names
DbColsUnitClass.selected
DbColsUnitClass.sub_batch_01
DbColsUnitClass.sub_batch_02
DbColsUnitClass.sub_batch_03
DbColsUnitClass.sub_batch_04
DbColsUnitClass.sub_batch_05
DbColsUnitClass.sub_batch_06
DbColsUnitClass.sub_batch_07
FileNamesClass
InstrumentsClass
MaterialsClass
PathsClass
ReaderClass
ReaderClass.auto_dirs
ReaderClass.capacity_interpolation_step
ReaderClass.cycle_mode
ReaderClass.diagnostics
ReaderClass.ensure_step_table
ReaderClass.ensure_summary_table
ReaderClass.filestatuschecker
ReaderClass.force_all
ReaderClass.force_step_table_creation
ReaderClass.limit_loaded_cycles
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
- Subpackages
- Submodules
- cellpy.readers.instruments.arbin_res module
- cellpy.readers.instruments.arbin_sql module
- cellpy.readers.instruments.arbin_sql_7 module
- cellpy.readers.instruments.arbin_sql_csv module
- cellpy.readers.instruments.arbin_sql_h5 module
- cellpy.readers.instruments.arbin_sql_xlsx module
- cellpy.readers.instruments.base module
- cellpy.readers.instruments.biologics_mpr module
- cellpy.readers.instruments.custom module
- cellpy.readers.instruments.ext_nda_reader module
- cellpy.readers.instruments.local_instrument module
- cellpy.readers.instruments.maccor_txt module
- cellpy.readers.instruments.neware_txt module
- cellpy.readers.instruments.pec_csv module
- Module contents
- cellpy.readers.instruments package
- Submodules
- cellpy.readers.cellreader module
CellpyCell
CellpyCell.data
CellpyCell.cellpy_units
CellpyCell.cellpy_datadir
CellpyCell.raw_datadir
CellpyCell.filestatuschecker
CellpyCell.force_step_table_creation
CellpyCell.ensure_step_table
CellpyCell.limit_loaded_cycles
CellpyCell.profile
CellpyCell.select_minimal
CellpyCell.empty
CellpyCell.forced_errors
CellpyCell.capacity_modifiers
CellpyCell.sep
CellpyCell.cycle_mode
CellpyCell.tester
CellpyCell.cell_name
CellpyCell.cellpy_file_version
CellpyCell.active_electrode_area
CellpyCell.cell_name
CellpyCell.check_file_ids()
CellpyCell.cycle_mode
CellpyCell.data
CellpyCell.dev_update()
CellpyCell.dev_update_from_raw()
CellpyCell.dev_update_loadcell()
CellpyCell.dev_update_make_steps()
CellpyCell.dev_update_make_summary()
CellpyCell.dev_update_merge()
CellpyCell.drop_edges()
CellpyCell.drop_from()
CellpyCell.drop_to()
CellpyCell.empty
CellpyCell.from_raw()
CellpyCell.get_cap()
CellpyCell.get_ccap()
CellpyCell.get_converter_to_specific()
CellpyCell.get_current()
CellpyCell.get_cycle_numbers()
CellpyCell.get_datetime()
CellpyCell.get_dcap()
CellpyCell.get_diagnostics_plots()
CellpyCell.get_ir()
CellpyCell.get_mass()
CellpyCell.get_number_of_cycles()
CellpyCell.get_ocv()
CellpyCell.get_raw()
CellpyCell.get_step_numbers()
CellpyCell.get_summary()
CellpyCell.get_timestamp()
CellpyCell.get_voltage()
CellpyCell.initialize()
CellpyCell.inspect_nominal_capacity()
CellpyCell.link()
CellpyCell.load()
CellpyCell.load_step_specifications()
CellpyCell.loadcell()
CellpyCell.make_step_table()
CellpyCell.make_summary()
CellpyCell.mass
CellpyCell.merge()
CellpyCell.mod_raw_split_cycle()
CellpyCell.nom_cap
CellpyCell.nom_cap_specifics
CellpyCell.nominal_capacity_as_absolute()
CellpyCell.partial_load()
CellpyCell.populate_step_dict()
CellpyCell.print_steps()
CellpyCell.raw_units
CellpyCell.register_instrument_readers()
CellpyCell.save()
CellpyCell.select_steps()
CellpyCell.set_cellpy_datadir()
CellpyCell.set_col_first()
CellpyCell.set_instrument()
CellpyCell.set_mass()
CellpyCell.set_nom_cap()
CellpyCell.set_raw_datadir()
CellpyCell.set_tot_mass()
CellpyCell.sget_current()
CellpyCell.sget_step_numbers()
CellpyCell.sget_steptime()
CellpyCell.sget_timestamp()
CellpyCell.sget_voltage()
CellpyCell.split()
CellpyCell.split_many()
CellpyCell.to_cellpy_unit()
CellpyCell.to_csv()
CellpyCell.to_excel()
CellpyCell.unit_scaler_from_raw()
CellpyCell.vacant()
CellpyCell.with_cellpy_unit()
check_cellpy_file()
check_excel()
check_new_dot_get_methods()
check_raw()
get()
load_and_save_to_excel()
save_and_load_cellpy_file()
- cellpy.readers.core module
BaseDbReader
BaseDbReader.from_batch()
BaseDbReader.get_area()
BaseDbReader.get_args()
BaseDbReader.get_by_column_label()
BaseDbReader.get_cell_name()
BaseDbReader.get_cell_type()
BaseDbReader.get_comment()
BaseDbReader.get_experiment_type()
BaseDbReader.get_group()
BaseDbReader.get_instrument()
BaseDbReader.get_label()
BaseDbReader.get_loading()
BaseDbReader.get_mass()
BaseDbReader.get_nom_cap()
BaseDbReader.get_total_mass()
BaseDbReader.inspect_hd5f_fixed()
BaseDbReader.select_batch()
Data
FileID
InstrumentFactory
PickleProtocol
check64bit()
check_another_path_things()
check_convert_from_simple_unit_label_to_string_unit_label()
check_copy_external_file()
check_how_other_path_works()
check_path_things()
collect_capacity_curves()
convert_from_simple_unit_label_to_string_unit_label()
find_all_instruments()
generate_default_factory()
group_by_interpolate()
humanize_bytes()
identify_last_data_point()
interpolate_y_on_x()
pickle_protocol()
xldate_as_datetime()
- 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.from_batch()
Reader.get_all()
Reader.get_area()
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
- cellpy.readers.sql_dbreader module
- Module contents
- Subpackages
- cellpy.utils package
- Subpackages
- cellpy.utils.batch_tools package
- Submodules
- cellpy.utils.batch_tools.batch_analyzers module
- cellpy.utils.batch_tools.batch_core module
- cellpy.utils.batch_tools.batch_experiments module
- cellpy.utils.batch_tools.batch_exporters module
- cellpy.utils.batch_tools.batch_helpers module
- cellpy.utils.batch_tools.batch_journals module
- 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
- cellpy.utils.batch_tools.sqlite_from_excel_db 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.old_duplicate_journal()
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
check_iterate()
check_new()
check_standard()
from_journal()
init()
iterate_batches()
load_pages()
process_batch()
- cellpy.utils.collectors module
- cellpy.utils.collectors_old module
- cellpy.utils.diagnostics 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()
- cellpy.utils.example_data 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()
update_journal_cellpy_data_dir()
yank_after()
yank_before()
yank_outliers()
- cellpy.utils.ica module
- cellpy.utils.live module
- cellpy.utils.ocv_rlx module
MultiCycleOcvFit
MultiCycleOcvFit.create_colormap()
MultiCycleOcvFit.cycles
MultiCycleOcvFit.find_zero()
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()
MultiCycleOcvFit.summary_translated()
OcvFit
OcvFit.data
OcvFit.time
OcvFit.voltage
OcvFit.steps
OcvFit.circuits
OcvFit.weights
OcvFit.zero_current
OcvFit.zero_voltage
OcvFit.model
OcvFit.params
OcvFit.result
OcvFit.best_fit_data
OcvFit.best_fit_parameters
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()
fit()
select_ocv_points()
- cellpy.utils.plotutils module
- cellpy.utils.processor module
- Module contents
- Subpackages
Submodules
cellpy.cli module
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.NoDataFound[source]
Bases:
Error
Raised when there are no cells, but a data 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_level=None, default_json_path=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.Q
alias of
Quantity
- cellpy.get(filename=None, instrument=None, instrument_file=None, cellpy_file=None, cycle_mode=None, mass: Optional[Union[str, Number]] = None, nominal_capacity: Optional[Union[str, Number]] = None, nom_cap_specifics=None, loading=None, area: Optional[Union[str, Number]] = None, estimate_area=True, logging_mode=None, auto_pick_cellpy_format=True, auto_summary=True, units=None, step_kwargs=None, summary_kwargs=None, selector=None, testing=False, refuse_copying=False, initialize=False, debug=False, **kwargs)[source]
Create a CellpyCell object
- Parameters
filename (str, os.PathLike, OtherPath, or list of raw-file names) – path to file(s) to load
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
cellpy_file (str, os.PathLike, or OtherPath) – if both filename (a raw-file) and cellpy_file (a cellpy file) is provided, cellpy will try to check if the raw-file is has been updated since the creation of the cellpy-file and select this instead of the raw file if cellpy thinks they are similar (use with care!).
logging_mode (str) – “INFO” or “DEBUG”
cycle_mode (str) – the cycle mode (e.g. “anode” or “full_cell”)
mass (float) – mass of active material (mg) (defaults to mass given in cellpy-file or 1.0)
nominal_capacity (float) – nominal capacity for the cell (e.g. used for finding C-rates)
nom_cap_specifics (str) – either “gravimetric” (pr mass), “areal” (per area), or “volumetric” (per volume)
loading (float) – loading in units [mass] / [area]
area (float) – active electrode area (e.g. used for finding the areal capacity)
estimate_area (bool) – calculate area from loading if given (defaults to True)
auto_pick_cellpy_format (bool) – decide if it is a cellpy-file based on suffix.
auto_summary (bool) – (re-) create summary.
units (dict) – update cellpy units (used after the file is loaded, e.g. when creating summary).
step_kwargs (dict) – sent to make_steps
summary_kwargs (dict) – sent to make_summary
selector (dict) – passed to load (when loading cellpy-files).
testing (bool) – set to True if testing (will for example prevent making .log files)
refuse_copying (bool) – set to True if you do not want to copy the raw-file before loading.
initialize (bool) – set to True if you want to initialize the CellpyCell object (probably only useful if you want to return a cellpy-file with no data in it)
debug (bool) – set to True if you want to debug the loader.
**kwargs – sent to the loader
- Keyword args (“arbin_res”):
bad_steps (list of tuples): (c, s) tuples of steps s (in cycle c) to skip loading [arbin_res]. dataset_number (int): the data set number (‘Test-ID’) to select if you are dealing
with arbin files with more than one data-set. Defaults to selecting all data-sets and merging them.
- data_points (tuple of ints): load only data from data_point[0] to
data_point[1] (use None for infinite).
increment_cycle_index (bool): increment the cycle index if merging several datasets (default True).
- Keyword args (“maccor_txt”, “neware_txt”, “local_instrument”, “custom”):
sep (str): separator used in the file. skip_rows (int): number of rows to skip in the beginning of the file. header (int): row number of the header. encoding (str): encoding of the file. decimal (str): decimal separator. thousand (str): thousand separator. pre_processor_hook (callable): pre-processors to use.
- Keyword args (“pec_csv”):
bad_steps (list): separator used in the file (not implemented yet).
- Returns
CellpyCell object (if successful, None if not)
Examples
>>> # read an arbin .res file and create a cellpy object with >>> # populated summary and step-table: >>> c = cellpy.get("my_data.res", instrument="arbin_res", mass=1.14, area=2.12, loading=1.2, nom_cap=155.2) >>> >>> # load a cellpy-file: >>> c = cellpy.get("my_cellpy_file.clp") >>> >>> # load a txt-file exported from Maccor: >>> c = cellpy.get("my_data.txt", instrument="maccor_txt", model="one") >>> >>> # load a raw-file if it is newer than the corresponding cellpy-file, >>> # if not, load the cellpy-file: >>> c = cellpy.get("my_data.res", cellpy_file="my_data.clp") >>> >>> # load a file with a custom file-description: >>> c = cellpy.get("my_file.csv", instrument_file="my_instrument.yaml") >>> >>> # load three subsequent raw-files (of one cell) and merge them: >>> c = cellpy.get(["my_data_01.res", "my_data_02.res", "my_data_03.res"]) >>> >>> # load a data set and get the summary charge and discharge capacities >>> # in Ah/g: >>> c = cellpy.get("my_data.res", units=dict(capacity="Ah")) >>> >>> # get an empty CellpyCell instance: >>> c = cellpy.get() # or c = cellpy.get(initialize=True) if you want to initialize it.
- cellpy.init()
initializes cellpy by reading the config file and the environment file