Action #2296

Throw an exception for On/Off fitting of non point source models

Added by Knödlseder Jürgen over 6 years ago. Updated over 6 years ago.

Status:ClosedStart date:01/16/2018
Priority:NormalDue date:
Assigned To:Knödlseder Jürgen% Done:

100%

Category:-
Target version:1.5.0
Duration:

Description

Following #2292, an exception should be thrown in case that the On/Off model is not a point source model. In addition, the documentation should say that On/Off fitting is only possible for point source models.


Recurrence

No recurrence.

History

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

If the spatial model the following exception is thrown:

*** ERROR encounterted in the execution of ctlike. Run aborted ...
*** ERROR in GCTAOnOffObservation::N_gamma(GModels&, int&, GVector*): Invalid value. Spatial model of source "Crab" is of type "RadialDisk" while the method only works for point sources. Please specify a point source model.

#2 Updated by Knödlseder Jürgen over 6 years ago

  • Status changed from In Progress to Closed
  • % Done changed from 50 to 100

Added documentation about On/Off fitting limitation to ctools user manual.

Also available in: Atom PDF