Commit 140639488070e82e9bb0ee64a5f9f05b27a4f6d9
1 parent
d201f08a
Adapt to GammaLib interface change (#2238)
Showing
1 changed file
with
5 additions
and
5 deletions
src/ctlike/ctlike.cpp
| ... | ... | @@ -382,7 +382,7 @@ void ctlike::save(void) |
| 382 | 382 | * by querying the user. Observation dependent parameters will only be read |
| 383 | 383 | * if the observation container is actually empty. Observation dependent |
| 384 | 384 | * parameters are: |
| 385 | - * "stat" (statistics to be used for observation), | |
| 385 | + * "stat" (statistic to be used for observation), | |
| 386 | 386 | * "caldb" (calibration database), |
| 387 | 387 | * "irf" (instrument response function), and |
| 388 | 388 | * "infile" (input file name). |
| ... | ... | @@ -397,14 +397,14 @@ void ctlike::get_parameters(void) |
| 397 | 397 | // Setup observations from "inobs" parameter |
| 398 | 398 | setup_observations(m_obs); |
| 399 | 399 | |
| 400 | - // If only single observation is used, read statistics parameter | |
| 400 | + // If only single observation is used, read statistic parameter | |
| 401 | 401 | if (!m_use_xml) { |
| 402 | 402 | |
| 403 | 403 | // Get other task parameters |
| 404 | - std::string statistics = gammalib::toupper((*this)["stat"].string()); | |
| 404 | + std::string statistic = gammalib::toupper((*this)["stat"].string()); | |
| 405 | 405 | |
| 406 | - // Set statistics | |
| 407 | - (*m_obs[0]).statistics(statistics); | |
| 406 | + // Set statistic | |
| 407 | + (*m_obs[0]).statistic(statistic); | |
| 408 | 408 | } |
| 409 | 409 | |
| 410 | 410 | // If there is are no models associated with the observations then | ... | ... |