From 3123ece22481721930847131a890fb62dc59bb57 Mon Sep 17 00:00:00 2001 From: Josh Cardenzana Date: Mon, 3 Jul 2017 11:52:06 +0200 Subject: [PATCH] Update logging text (#1970) --- src/ctbin/ctbin.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/ctbin/ctbin.cpp b/src/ctbin/ctbin.cpp index dc81191..ea8e06f 100644 --- a/src/ctbin/ctbin.cpp +++ b/src/ctbin/ctbin.cpp @@ -233,21 +233,22 @@ void ctbin::run(void) log_observations(NORMAL, m_obs, "Input observation"); // Write header into logger - log_header1(TERSE, gammalib::number("Bin observation", m_obs.size())); + log_header1(TERSE, gammalib::number("Find unbinned observation", m_obs.size())); - // Extract out all of the non-NULL observations - log_header2(TERSE, "Executing pre-loop"); + // Find all unbinned CTA observations in m_obs std::vector obs_list(0); for (GCTAObservation* obs = first_unbinned_observation(); obs != NULL; obs = next_unbinned_observation()) { + std::string msg = " Including unbinned "+obs->instrument()+" observation"; + log_string(NORMAL, msg); obs_list.push_back(obs); } - // Write sub-header into logger - log_header2(TERSE, "Filling observations"); - + // Write header into logger + log_header1(TERSE, gammalib::number("Bin observation", m_obs.size())); + // Loop over all unbinned CTA observations in the container - #pragma omp parallel for + #pragma omp parallel for schedule(dynamic) for (int oindx=0; oindx