mirror of
https://github.com/slsdetectorgroup/aare.git
synced 2025-06-27 21:51:09 +02:00
replaced fmt with LOG
This commit is contained in:
@ -5,7 +5,6 @@ import numpy as np
|
|||||||
@pytest.mark.files
|
@pytest.mark.files
|
||||||
def test_read_rawfile_with_roi(test_data_path):
|
def test_read_rawfile_with_roi(test_data_path):
|
||||||
|
|
||||||
# Starting with f1 there is now 7 frames left in the series of files
|
|
||||||
with RawFile(test_data_path / "raw/SingleChipROI/Data_master_0.json") as f:
|
with RawFile(test_data_path / "raw/SingleChipROI/Data_master_0.json") as f:
|
||||||
headers, frames = f.read()
|
headers, frames = f.read()
|
||||||
|
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
#include "aare/RawMasterFile.hpp"
|
#include "aare/RawMasterFile.hpp"
|
||||||
#include "aare/RawFile.hpp"
|
#include "aare/RawFile.hpp"
|
||||||
|
#include "aare/logger.hpp"
|
||||||
#include <sstream>
|
#include <sstream>
|
||||||
|
|
||||||
namespace aare {
|
namespace aare {
|
||||||
|
|
||||||
RawFileNameComponents::RawFileNameComponents(
|
RawFileNameComponents::RawFileNameComponents(
|
||||||
@ -425,9 +427,9 @@ void RawMasterFile::parse_raw(const std::filesystem::path &fpath) {
|
|||||||
|
|
||||||
if (m_geometry.col == 0 && m_geometry.row == 0) {
|
if (m_geometry.col == 0 && m_geometry.row == 0) {
|
||||||
retrieve_geometry();
|
retrieve_geometry();
|
||||||
fmt::print("Warning: No geometry found in master file. Retrieved "
|
LOG(TLogLevel::logWARNING)
|
||||||
"geometry of {}x{}\n",
|
<< "No geometry found in master file. Retrieved geometry of "
|
||||||
m_geometry.row, m_geometry.col);
|
<< m_geometry.row << " x " << m_geometry.col << "\n ";
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO! Read files and find actual frames
|
// TODO! Read files and find actual frames
|
||||||
|
Reference in New Issue
Block a user