From 75b264f7e5968e3503198c1cc10dfa5ec842ce13 Mon Sep 17 00:00:00 2001 From: Michael Mayer Date: Wed, 13 Feb 2013 14:57:34 +0100 Subject: [PATCH] incorporated change request 752 --- src/ctmodel/ctmodel.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/ctmodel/ctmodel.cpp b/src/ctmodel/ctmodel.cpp index ba2e0fc..04f4125 100644 --- a/src/ctmodel/ctmodel.cpp +++ b/src/ctmodel/ctmodel.cpp @@ -582,10 +582,13 @@ void ctmodel::setup_obs(void) throw GException::no_cube(G_SETUP_OBS); } - // Set response - obs->response(m_irf, m_caldb); + // Set response if it isn't set already + if (obs->response() == NULL) { + obs->response(m_irf, m_caldb); + } // endif: observation already has a response } // endif: observation was a CTA observation + } // endfor: looped over all observations // Return -- libgit2 0.21.4