Commit 6f6cc745b38789c36465c8f0e8cc7db613f0b28b
1 parent
248f51a1
Change GEbounds::is_in_range() into GEbounds::contains().
Showing
1 changed file
with
2 additions
and
2 deletions
src/ctmodel/ctmodel.cpp
| ... | ... | @@ -609,8 +609,8 @@ void ctmodel::fill_cube(const GCTAObservation* obs) |
| 609 | 609 | // Skip bin if it is outside the energy range of the observation |
| 610 | 610 | int index = cube_ebounds.index(bin->energy()); |
| 611 | 611 | if (index == -1 || |
| 612 | - !obs_ebounds.is_in_range(cube_ebounds.emin(index), | |
| 613 | - cube_ebounds.emax(index))) { | |
| 612 | + !obs_ebounds.contains(cube_ebounds.emin(index), | |
| 613 | + cube_ebounds.emax(index))) { | |
| 614 | 614 | num_outside_ebds++; |
| 615 | 615 | continue; |
| 616 | 616 | } | ... | ... |