-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(cyclers): update arbin, basytec and biologic modules
- Loading branch information
1 parent
f9e31af
commit a1a7129
Showing
4 changed files
with
55 additions
and
45 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,19 @@ | ||
"""A module to load and process Arbin battery cycler data.""" | ||
|
||
from pyprobe.cyclers.basecycler import BaseCycler | ||
import polars as pl | ||
|
||
from pyprobe.cyclers import basecycler as bc | ||
|
||
class Arbin(BaseCycler): | ||
|
||
class Arbin(bc.BaseCycler): | ||
"""A class to load and process Neware battery cycler data.""" | ||
|
||
input_data_path: str | ||
column_dict: dict[str, str] = { | ||
"Date Time": "Date", | ||
"Test Time (*)": "Time [*]", | ||
"Step Index": "Step", | ||
"Current (*)": "Current [*]", | ||
"Voltage (*)": "Voltage [*]", | ||
"Charge Capacity (*)": "Charge Capacity [*]", | ||
"Discharge Capacity (*)": "Discharge Capacity [*]", | ||
"Aux_Temperature_1 (*)": "Temperature [*]", | ||
} | ||
datetime_format: str = "%m/%d/%Y %H:%M:%S%.f" | ||
column_importers: list[bc.ColumnMap] = [ | ||
bc.DateTime("Date Time", "%m/%d/%Y %H:%M:%S%.f"), | ||
bc.CastAndRename("Step", "Step Index", pl.Int64), | ||
bc.ConvertUnits("Time [s]", "Test Time (*)"), | ||
bc.ConvertUnits("Current [A]", "Current (*)"), | ||
bc.ConvertUnits("Voltage [V]", "Voltage (*)"), | ||
bc.CapacityFromChDch("Charge Capacity (*)", "Discharge Capacity (*)"), | ||
bc.ConvertTemperature("Aux_Temperature_1 (*)"), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters