mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2026-07-15 02:02:22 +02:00
clang-format
This commit is contained in:
+5
-6
@@ -5,9 +5,8 @@
|
||||
namespace aare {
|
||||
|
||||
CtbRawFile::CtbRawFile(const std::filesystem::path &fname) : m_master(fname) {
|
||||
if( (m_master.detector_type() != DetectorType::ChipTestBoard) &&
|
||||
(m_master.detector_type() != DetectorType::Xilinx_ChipTestBoard) )
|
||||
{
|
||||
if ((m_master.detector_type() != DetectorType::ChipTestBoard) &&
|
||||
(m_master.detector_type() != DetectorType::Xilinx_ChipTestBoard)) {
|
||||
throw std::runtime_error(LOCATION + "Not a Ctb file");
|
||||
}
|
||||
|
||||
@@ -15,8 +14,9 @@ CtbRawFile::CtbRawFile(const std::filesystem::path &fname) : m_master(fname) {
|
||||
|
||||
// open the first subfile
|
||||
m_file.open(m_master.data_fname(0, 0), std::ios::binary);
|
||||
if(!m_file)
|
||||
throw std::runtime_error(LOCATION + "Could not open: " + m_master.data_fname(0, 0).string());
|
||||
if (!m_file)
|
||||
throw std::runtime_error(
|
||||
LOCATION + "Could not open: " + m_master.data_fname(0, 0).string());
|
||||
}
|
||||
|
||||
void CtbRawFile::read_into(std::byte *image_buf, DetectorHeader *header) {
|
||||
@@ -63,7 +63,6 @@ void CtbRawFile::find_subfiles() {
|
||||
// we can semi safely assume that there is only one module for CTB
|
||||
while (std::filesystem::exists(m_master.data_fname(0, m_num_subfiles)))
|
||||
m_num_subfiles++;
|
||||
|
||||
}
|
||||
|
||||
void CtbRawFile::open_data_file(size_t subfile_index) {
|
||||
|
||||
Reference in New Issue
Block a user