Bug #1306

ctbin[ ebinfile] doesn't work

Added by Lu Chia-Chun over 9 years ago. Updated over 9 years ago.

Status:ClosedStart date:07/30/2014
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:00-08-00
Duration:

Description

It throws this error message:
RuntimeError: *** ERROR in GSkymap::GSkymap(std::string&, std::string&, double&, double&, double& double&, int&, int&, int&): Invalid map parameter (0). nmaps parameter must be >0.

because m_enumbins is not set before a skymap is constructed.

Switch the order of the following two lines in init_cube() can fix the bug. (So I don’t commit my change. Please directly correct it.)

// Create skymap
m_cube = GSkymap(m_proj, m_coordsys,
xref, yref, -m_binsz, m_binsz,
m_nxpix, m_nypix, m_enumbins);
// Set energy boundaries
get_ebounds();

Recurrence

No recurrence.

History

#1 Updated by Knödlseder Jürgen over 9 years ago

  • Description updated (diff)
  • Status changed from Pull request to Closed
  • Assigned To changed from Lu Chia-Chun to Knödlseder Jürgen
  • Target version set to 00-08-00

Done (in devel)

Also available in: Atom PDF