Commit cd6ab70ae0fb5df9cf440efbf9bc6785df26050b

Authored by Jürgen Knödlseder
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 587  
588 588 } // endif: used pointing
589 589  
  590 + // Set energy boundaries
  591 + get_ebounds();
  592 +
590 593 // Create skymap
591 594 m_cube = GSkymap(m_proj, m_coordsys,
592 595 xref, yref, -m_binsz, m_binsz,
593 596 m_nxpix, m_nypix, m_enumbins);
594 597  
595   - // Set energy boundaries
596   - get_ebounds();
597   -
598 598 // Return
599 599 return;
600 600 }
... ...