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

Readme example fails with keeyerror #1

Closed
shimwell opened this issue Jun 11, 2024 · 2 comments
Closed

Readme example fails with keeyerror #1

shimwell opened this issue Jun 11, 2024 · 2 comments

Comments

@shimwell
Copy link

Hi IAEA

Thanks for making the repo.

I'm just taking a look and noticed the example in the readme doesn't work straight away.

I'm getting this error

Traceback (most recent call last):
  File "/home/j/exfor_json/plot.py", line 8, in <module>
    entry_data = data["003"]["data"]
                 ~~~~^^^^^^^
KeyError: '003'

Wondering if this is an easy fix for someone who knows the data structure better than me

slightly related package that might be handy

@shinokumura
Copy link
Collaborator

@shimwell The README has been corrected in this commit. It previously referred to an old version. and will try pytest, thanks for the suggestion!

@shimwell
Copy link
Author

Thanks for solving that issue

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

2 participants