Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KeyError: 'cyc1500' thrown by In[5] in main_torch.ipynb #2

Open
kar10tik opened this issue Jan 10, 2024 · 0 comments
Open

KeyError: 'cyc1500' thrown by In[5] in main_torch.ipynb #2

kar10tik opened this issue Jan 10, 2024 · 0 comments

Comments

@kar10tik
Copy link

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:

image

@kar10tik 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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant