Skip to content

Commit

Permalink
add option for selecting specifics in get_cap
Browse files Browse the repository at this point in the history
  • Loading branch information
jepegit committed Dec 25, 2023
1 parent cfcc034 commit 6a86bdd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion cellpy/readers/cellreader.py
Original file line number Diff line number Diff line change
Expand Up @@ -4229,7 +4229,6 @@ def get_cap(
# to run the function on several cells and have a common x-axis)

# TODO: allow for missing steps (i.e. if you have a cell with only charge and no discharge in the first cycle)
# TODO: check - initialize cc, cv, dc, dv to pd.DataFrame() in the beginning of each loop

# if cycle is not given, then this function should
# iterate through cycles
Expand Down Expand Up @@ -4295,6 +4294,10 @@ def get_cap(

initial = True
for current_cycle in cycle:
cc = pd.DataFrame()
cv = pd.DataFrame()
dc = pd.DataFrame()
dv = pd.DataFrame()
error = False
try:
cc, cv = self.get_ccap(
Expand Down

0 comments on commit 6a86bdd

Please sign in to comment.