You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The code snippet from In[5] below in main_torch.ipynb
for i in range(0, 8): #breaks down dataset to return the values that we need
cell_num = "Cell{}".format(i + 1)
for j in range(0, CELL_SIZE[i]):
cyc_num = "cyc{:04d}".format(j * 100) # if j=47, cyc_num = "cyc4700"; if j=1, cyc_num = "cyc0100"
try:
curr = mat[cell_num][0][cyc_num][0][0]["C1ch"][0][0]['q'][0][-1][0]
except ValueError:
curr = float("NaN")
input_data[i][0].append(j)
input_data[i][1].append(curr)
throws the error KeyError: 'cyc1500' as the Oxford Battery Degradation Dataset 1 doesn't contain cyc1500:
The text was updated successfully, but these errors were encountered:
kar10tik
changed the title
KeyError: 'cyc1500' thrown by main_torch.ipynb in In[5]
KeyError: 'cyc1500' thrown by In[5] in main_torch.ipynb
Jan 10, 2024
The code snippet from
In[5]
below inmain_torch.ipynb
throws the error
KeyError: 'cyc1500'
as the Oxford Battery Degradation Dataset 1 doesn't contain cyc1500:The text was updated successfully, but these errors were encountered: