Commit 2cc8700eee08184c81eb95847bdf769690fa34ce
1 parent
844130f6
Make sure that observation boundaries are set
Showing
2 changed files
with
5 additions
and
2 deletions
src/ctobssim/ctobssim.cpp
| @@ -570,6 +570,11 @@ void ctobssim::get_parameters(void) | @@ -570,6 +570,11 @@ void ctobssim::get_parameters(void) | ||
| 570 | m_obs = get_observations(); | 570 | m_obs = get_observations(); |
| 571 | } | 571 | } |
| 572 | 572 | ||
| 573 | + // ... otherwise make sure that observation boundaries are set | ||
| 574 | + else { | ||
| 575 | + set_obs_bounds(m_obs); | ||
| 576 | + } | ||
| 577 | + | ||
| 573 | // Read model definition file if required | 578 | // Read model definition file if required |
| 574 | if (m_obs.models().size() == 0) { | 579 | if (m_obs.models().size() == 0) { |
| 575 | std::string inmodel = (*this)["inmodel"].filename(); | 580 | std::string inmodel = (*this)["inmodel"].filename(); |
src/support/ctool.cpp
| @@ -869,8 +869,6 @@ void ctool::set_obs_bounds(GObservations& obs) | @@ -869,8 +869,6 @@ void ctool::set_obs_bounds(GObservations& obs) | ||
| 869 | } | 869 | } |
| 870 | 870 | ||
| 871 | 871 | ||
| 872 | - | ||
| 873 | - | ||
| 874 | /***********************************************************************//** | 872 | /***********************************************************************//** |
| 875 | * @brief Derives mean pointing from CTA observations | 873 | * @brief Derives mean pointing from CTA observations |
| 876 | * | 874 | * |