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

catch None in hdf5 write as TypeError #403

Merged
merged 3 commits into from
Feb 17, 2022
Merged

Conversation

joelvbernier
Copy link
Member

This address HEXRD/hexrdgui#1161; now if a panel_buffer attribute is None, no exception is encoutnered. However the HDF5 format (.hexrd) config gets written with panel_buffer = [0., 0.] instead of omitting it. I think we should alter that behavior to just omit, which gets caught in the HEDMInstrument.__init__.

@joelvbernier joelvbernier added the bug Something isn't working label Feb 16, 2022
@joelvbernier joelvbernier requested a review from psavery February 16, 2022 01:13
@joelvbernier joelvbernier self-assigned this Feb 16, 2022
Co-authored-by: Patrick Avery <patrick.avery@kitware.com>
@joelvbernier joelvbernier requested a review from psavery February 16, 2022 23:12
@joelvbernier joelvbernier merged commit 2fc962c into master Feb 17, 2022
@joelvbernier joelvbernier deleted the none-buffer-patch branch February 17, 2022 06:04
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 this pull request may close these issues.

2 participants