jfjoch_action_test: Improve output clarity

This commit is contained in:
2023-05-27 18:18:00 +02:00
parent 19476dc6ea
commit 5ef0cd0f74
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -106,13 +106,13 @@ bool TestImagePusher::CheckImage(const DiffractionExperiment &x, const std::vect
decompressed_image.data(),
storage_cell);
if (x.GetBinning2x2() && (result > 1.5)) {
logger.Error("Mean conversion error ({}) larger than threshold", result);
logger.Error("Mean conversion error ({:.3f}) larger than threshold", result);
no_errors = false;
} else if (!x.GetBinning2x2() && (result > 0.5)) {
logger.Error("Mean conversion error ({}) larger than threshold", result);
logger.Error("Mean conversion error ({:.3f}) larger than threshold", result);
no_errors = false;
} else
logger.Info("Mean conversion error: {}", result);
logger.Info("Mean conversion error: {:.3f}", result);
} else if (x.GetDetectorMode() == DetectorMode::Raw) {
if (memcmp(raw_reference_image.data(), decompressed_image.data(), sizeof(uint16_t) * x.GetPixelsNum()) !=
0) {
+2 -1
View File
@@ -99,8 +99,9 @@ int main(int argc, char **argv) {
double receiving_time = static_cast<double>(output.end_time_ms() - output.start_time_ms())/1000.0;
logger.Info("Efficiency: {:.2f}%", output.efficiency() * 100.f);
logger.Info("Max delay: {}",output.max_receive_delay());
logger.Info("Compression ratio: {}", output.compressed_ratio());
logger.Info("Compression factor: {}x", output.compressed_ratio());
logger.Info("Receiving time: {} s", receiving_time);
logger.Info("Frame rate: {} Hz", static_cast<double>(nimages)/receiving_time);
logger.Info("Total throughput: {:.2f} GB/s",