Support #1708
How to output TS value of ctllike
Status: | Closed | Start date: | ||
---|---|---|---|---|
Priority: | Normal | Due 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 over 8 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 over 8 years ago
- Status changed from Feedback to Closed