Commit cd6ab70ae0fb5df9cf440efbf9bc6785df26050b
1 parent
ef4a935c
Make sure that energy boundaries are set before the sky map is set.
Showing
1 changed file
with
3 additions
and
3 deletions
src/ctbin/ctbin.cpp
| @@ -587,14 +587,14 @@ void ctbin::init_cube(void) | @@ -587,14 +587,14 @@ void ctbin::init_cube(void) | ||
| 587 | 587 | ||
| 588 | } // endif: used pointing | 588 | } // endif: used pointing |
| 589 | 589 | ||
| 590 | + // Set energy boundaries | ||
| 591 | + get_ebounds(); | ||
| 592 | + | ||
| 590 | // Create skymap | 593 | // Create skymap |
| 591 | m_cube = GSkymap(m_proj, m_coordsys, | 594 | m_cube = GSkymap(m_proj, m_coordsys, |
| 592 | xref, yref, -m_binsz, m_binsz, | 595 | xref, yref, -m_binsz, m_binsz, |
| 593 | m_nxpix, m_nypix, m_enumbins); | 596 | m_nxpix, m_nypix, m_enumbins); |
| 594 | 597 | ||
| 595 | - // Set energy boundaries | ||
| 596 | - get_ebounds(); | ||
| 597 | - | ||
| 598 | // Return | 598 | // Return |
| 599 | return; | 599 | return; |
| 600 | } | 600 | } |