Support #1708

How to output TS value of ctllike

Added by Dang Viet Tan almost 9 years ago. Updated almost 9 years ago.

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

100%

Category:-
Target version:-
Duration:

Description

Dear the system admin

Hi, my name is Tan. I have a question.
How can I output TS value of ctlike by python code? I’ve found on ctools homepage but there’s no clear answer.

Thank you for reading me.
Tan


Recurrence

No recurrence.

History

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

  • Tracker changed from Feature to Support
  • Subject changed from how to output TS value of ctllike to How to output TS value of ctllike
  • Status changed from New to Feedback
  • Assigned To set to Knödlseder Jürgen
  • % Done changed from 0 to 100

Use the GModel::ts() method, e.g.

ctlike = ctools.ctlike()
...
ctlike.run()
models = ctlike.obs().models()
for model in models:
    if model.has_ts():
        print("Model %s has TS %.3f" % (model.name(), model.ts()))

#2 Updated by Knödlseder Jürgen almost 9 years ago

  • Status changed from Feedback to Closed

Also available in: Atom PDF