Commit 75b264f7e5968e3503198c1cc10dfa5ec842ce13

Authored by Michael Mayer
1 parent 2e015dc1

incorporated change request 752

Showing 1 changed file with 5 additions and 2 deletions
src/ctmodel/ctmodel.cpp
... ... @@ -582,10 +582,13 @@ void ctmodel::setup_obs(void)
582 582 throw GException::no_cube(G_SETUP_OBS);
583 583 }
584 584  
585   - // Set response
586   - obs->response(m_irf, m_caldb);
  585 + // Set response if it isn't set already
  586 + if (obs->response() == NULL) {
  587 + obs->response(m_irf, m_caldb);
  588 + } // endif: observation already has a response
587 589  
588 590 } // endif: observation was a CTA observation
  591 +
589 592 } // endfor: looped over all observations
590 593  
591 594 // Return
... ...