mirror of
https://github.com/slsdetectorgroup/slsDetectorPackage.git
synced 2026-08-05 09:32:25 +02:00
minor debug
This commit is contained in:
@@ -19,8 +19,6 @@ void acquire_and_check_file_size(
|
||||
auto acq_state = acq::default_acquisition_state();
|
||||
acq_state.num_frames = 2;
|
||||
auto file_state = acq::default_file_state();
|
||||
INFO("Acquiring " << ToString(det.getDetectorType().squash(defs::GENERIC))
|
||||
<< " with num_frames = " << acq_state.num_frames);
|
||||
acq::run(det, acq_state, file_state);
|
||||
auto image_size = acq::get_expected_image_size(det, ctb_state);
|
||||
REQUIRE_NOTHROW(
|
||||
@@ -257,6 +255,7 @@ void test_ctb_binary_file_size(Detector &det) {
|
||||
// sysctl net.core.rmem_default=$((100*1024*1024))
|
||||
TEST_CASE("acquire_check_binary_file_size",
|
||||
"[.detectorintegration][.disable_check_data_file]") {
|
||||
INFO(__func__);
|
||||
|
||||
Detector det;
|
||||
auto det_type =
|
||||
|
||||
@@ -27,6 +27,7 @@ namespace checks = sls::test::checks;
|
||||
|
||||
TEST_CASE("check_master_file_attributes",
|
||||
"[.detectorintegration][.disable_check_data_file]") {
|
||||
INFO(__func__);
|
||||
|
||||
Detector det;
|
||||
// currently num frame = 1 (default)
|
||||
@@ -42,8 +43,6 @@ TEST_CASE("check_master_file_attributes",
|
||||
}
|
||||
acq::CTBStateGuard ctb_guard(det, ctb_state);
|
||||
|
||||
INFO("Checking master file attributes for " << ToString(detType));
|
||||
|
||||
// binary => /tmp/sls_test_master_0.json
|
||||
file_state.file_format = defs::BINARY;
|
||||
acq::run(det, acq_state, file_state);
|
||||
|
||||
@@ -33,6 +33,10 @@ void run_acquisition(Detector &det) {
|
||||
|
||||
void run(Detector &det, const AcquisitionState &acq_state,
|
||||
const FileState &file_state) {
|
||||
|
||||
INFO(ToString(det.getDetectorType().squash(defs::GENERIC))
|
||||
<< " acquiring with num_frames = " << acq_state.num_frames);
|
||||
|
||||
FileStateGuard file_guard(det, file_state);
|
||||
AcquisitionStateGuard acq_guard(det, acq_state);
|
||||
run_acquisition(det);
|
||||
|
||||
Reference in New Issue
Block a user