Commit e8ca07f4fbae0cc22e25ec1cc358fc30f5122958
1 parent
1cd66136
Adapt to new ctlike interface.
The method parameter has been removed, and an infile parameter has been introduced instead of the old evfile and cntmap parameters.
Showing
2 changed files
with
2 additions
and
4 deletions
examples/make_binned_analysis.py
| ... | ... | @@ -113,10 +113,9 @@ def pipeline_v1(): |
| 113 | 113 | # Perform maximum likelihood fitting |
| 114 | 114 | like = ctlike() |
| 115 | 115 | like.logFileOpen() # We need this to explicitely open the log file in Python mode |
| 116 | - like["cntmap"].filename(cntmap_name) | |
| 116 | + like["infile"].filename(cntmap_name) | |
| 117 | 117 | like["srcmdl"].filename(model_name) |
| 118 | 118 | like["outmdl"].filename(result_name) |
| 119 | - like["method"].string("BINNED") | |
| 120 | 119 | like["caldb"].string(caldb) |
| 121 | 120 | like["irf"].string(irf) |
| 122 | 121 | like.execute() | ... | ... |
examples/make_unbinned_analysis.py
| ... | ... | @@ -106,10 +106,9 @@ def pipeline_v1(): |
| 106 | 106 | # Perform maximum likelihood fitting |
| 107 | 107 | like = ctlike() |
| 108 | 108 | like.logFileOpen() |
| 109 | - like["evfile"].filename(selected_events_name) | |
| 109 | + like["infile"].filename(selected_events_name) | |
| 110 | 110 | like["srcmdl"].filename(model_name) |
| 111 | 111 | like["outmdl"].filename(result_name) |
| 112 | - like["method"].string("UNBINNED") | |
| 113 | 112 | like["caldb"].string(caldb) |
| 114 | 113 | like["irf"].string(irf) |
| 115 | 114 | like.execute() | ... | ... |