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

Attempt to write an empty patch gives confusing error #119

Closed
augusto-herrmann opened this issue Jan 26, 2023 · 0 comments · Fixed by #120
Closed

Attempt to write an empty patch gives confusing error #119

augusto-herrmann opened this issue Jan 26, 2023 · 0 comments · Fixed by #120
Labels
bug Something isn't working

Comments

@augusto-herrmann
Copy link
Member

In the patchtowrk module, if the quality control dataframe is empty and someone calls DataPatch.to_file, the method fails with a confusing message:

KeyError: "None of [Index(['nan'], dtype='object', name='key_name')] are in the [index]"

It should instead fail with a clear and useful error message.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant