mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-06-05 07:28:41 +02:00
fixed parsing of dynamic range
This commit is contained in:
@@ -244,8 +244,8 @@ void RawMasterFile::parse_json(std::istream &is) {
|
||||
// TODO! Not valid for CTB but not changing api right now!
|
||||
// Not all detectors write the bitdepth but in case
|
||||
// its not there it is 16
|
||||
if(j.contains("Bit Depth") && j["Bit Depth"].is_number()){
|
||||
m_bitdepth = j["Bit Depth"];
|
||||
if(j.contains("Dynamic Range") && j["Dynamic Range"].is_number()){
|
||||
m_bitdepth = j["Dynamic Range"];
|
||||
} else {
|
||||
m_bitdepth = 16;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user