Reset index of cycles to start at 0

This commit is contained in:
rasmusthog 2022-10-15 17:16:54 +02:00
parent 2265b2a69e
commit f8f5e2ebb2

View file

@ -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))