Reset index of cycles to start at 0
This commit is contained in:
parent
2265b2a69e
commit
f8f5e2ebb2
1 changed files with 6 additions and 0 deletions
|
|
@ -357,6 +357,12 @@ def process_neware_data(df, options={}):
|
||||||
max_capacity = dchg_df['ions'].max()
|
max_capacity = dchg_df['ions'].max()
|
||||||
dchg_df['ions'] = np.abs(dchg_df['ions'] - max_capacity)
|
dchg_df['ions'] = np.abs(dchg_df['ions'] - max_capacity)
|
||||||
|
|
||||||
|
|
||||||
|
if not chg_df.empty:
|
||||||
|
chg_df.reset_index(inplace=True)
|
||||||
|
if not dchg_df.empty:
|
||||||
|
dchg_df.reset_index(inplace=True)
|
||||||
|
|
||||||
cycles.append((chg_df, dchg_df))
|
cycles.append((chg_df, dchg_df))
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue