Skip to content

Commit

Permalink
Add battery name to formatted data.
Browse files Browse the repository at this point in the history
  • Loading branch information
MartySchwarz committed Sep 23, 2021
1 parent a506ddc commit c4120b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions marmot/marmot_h5_formatter.py
Original file line number Diff line number Diff line change
Expand Up @@ -616,6 +616,7 @@ def df_process_batterie(self):
"""
df = self.df.droplevel(level=["band", "property"])
df.index.rename('battery_name', level='name', inplace=True)
df = pd.DataFrame(data=df.values.reshape(-1), index=df.index)
df_col = list(df.index.names) # Gets names of all columns in df and places in list
df_col.insert(0, df_col.pop(df_col.index("timestamp"))) # move timestamp to start of df
Expand Down

0 comments on commit c4120b9

Please sign in to comment.