Conversation
Fixes #1258 by including it, using effectively the same definition as is currently in the field from DECTRIS
This is written by the DECTRIS filewrite to say how many pixel bits are used, which can be different to those read from the hardware. See: https://www.dectris.com/support/downloads/header-docs/nexus/ nexusformat/definitions#1284 Co-authored-by: Richard Gildea <richard.gildea@diamond.ac.uk>
|
The name is over-determined by DECTRIS already writing with this name so we have to accept it as is. I am still confused by why this not redundant with asking the dataset what type it has. Some of the linked discussions make the good point that there is not a way to note if the data is signed or unsigned. Might be notionally better to have |
|
Proposal is instead to try |
|
I don't like the proposal to to add bit_depth_STORED. It is implementing a feature whose only current use case is to make the name flexible enough to legitimise the "bit_depth_image" that DECTRIS is already writing. We don't need to make it ambiguous with this feature. We should just give the field a simple name (e.g. "bit_depth_stored") and and if that name is not "bit_depth_image", then we should both define and deprecate "bit_depth_image". |
|
How about this? Use |
This reverts commit 6affcce.
|
Chatting more with @benajamin, go with the deprecated |
|
I think we should either bless exactly what dectris/MX is doing in the most minimal way or consider ways to more accurately specify the data types (signed int vs unsigned int vs float (and if you want to open up floats there are non-standard floats (that you can write to hdf5) that use varying fractions of available bits for the exponent and mantissa and rgb (is a color image 8 bits or 24 bits under The first is pragmatic but wrong, the second is a lot of work but likely the correct thing to do. |
|
Would changing to |
tacaswell
left a comment
There was a problem hiding this comment.
still approve after recent changes.
New PR superseding #1262 with additional edits from code camp review
From @graeme-winter: