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

Deserialization: Explicit the keys that made the deserialization of an object fail #780

Open
a-corni opened this issue Dec 12, 2024 · 1 comment

Comments

@a-corni
Copy link
Collaborator

a-corni commented Dec 12, 2024

Lately, a serialized Device had an error in its terms, the p_false_pos argument of the default_noise_model was written p_False_pos. This made finding the mistake very hard. Perhaps that, in the eventuality of a failing deserialization, we could try to check if the error is coming from an error in the keys of the dictionnary of the JSON-formatted object ?

@HGSilveri
Copy link
Collaborator

Indeed, the JSON validator error message is almost always useless but what you are proposing sounds like we would start doing part of its job.

Side note: This type of error only comes if someone is tinkering with the abstract representation manually, which should not happen...

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