Source code for cellpy.readers.instruments.configurations.maccor_txt_two
"""Configuration for tab-delimited Maccor txt files with 12 comment rows (used by KIT in the SIMBA project)."""
# currently skips the comment rows instead of parsing them (change this by modifying the formatters
# and add preprocessing step for parsing them)
[docs]
unit_labels = {
"resistance": "Ohms",
"time": "s",
"current": "A",
"voltage": "V",
"power": "W",
"capacity": "Ah",
"energy": "Wh",
"temperature": "C",
}
[docs]
file_info = {"raw_extension": "txt"}
[docs]
states = {
"column_name": "Md",
"charge_keys": ["C"],
"discharge_keys": ["D"],
"rest_keys": ["R"],
}
[docs]
raw_units = {"current": "A", "charge": "Ah", "mass": "g", "voltage": "V"}
[docs]
raw_limits = {
"current_hard": 0.000_000_000_000_1,
"current_soft": 0.000_01,
"stable_current_hard": 2.0,
"stable_current_soft": 4.0,
"stable_voltage_hard": 2.0,
"stable_voltage_soft": 4.0,
"stable_charge_hard": 0.001,
"stable_charge_soft": 5.0,
"ir_change": 0.00001,
}
[docs]
pre_processors = {
"remove_empty_lines": True,
}
[docs]
post_processors = {
"split_capacity": True,
"split_current": True,
"set_index": True,
"rename_headers": True,
"remove_last_if_bad": True,
"set_cycle_number_not_zero": True,
"convert_date_time_to_datetime": True,
}