Open graeme-winter opened 4 years ago
I found the wrong references - for Eiger type data it defaults to
# Get the trusted range of pixel values
trusted_range = (-1, float(nx_detector["saturation_value"][()]))
or falls back to
trusted_range = (-1, 99999999)
which makes more sense - assume code above applies to something else
-400 to 90000 are the CSPAD trusted ranges in high gain mode. These defaults seem to have wandered in from the early CSPAD NeXus stuff Herbert and I were doing.
Regarding datatype, casting to float is reasonable to me since that's the interface on the detector/panel classes where the underload/overload values are headed.
On Fri, Oct 4, 2019 at 8:09 AM Graeme Winter notifications@github.com wrote:
I found the wrong references - for Eiger type data it defaults to
# Get the trusted range of pixel values trusted_range = (-1, float(nx_detector["saturation_value"][()]))
or falls back to
trusted_range = (-1, 99999999)
which makes more sense - assume code above applies to something else
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/cctbx/dxtbx/issues/103?email_source=notifications&email_token=ADGY5SXM6YYIHIUHY6WFJALQM5MDRA5CNFSM4I5PDOZ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOEAL6T6Q#issuecomment-538438138, or mute the thread https://github.com/notifications/unsubscribe-auth/ADGY5SVHFN3TJQNPDGWU23TQM5MDRANCNFSM4I5PDOZQ .
OK, looking again at this - it seems underload_value
is not commonly populated. We need to make sure that this is reported as 0 from Eiger data 🤔
Do we need both trusted_range
and underload_value
?
@dagewa underload_value
comes from Eiger data set, goes to trusted_range
seems arbitrary at best
if
is inconsistent with the actual data type; presumably the data type should win?