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,10 +113,9 @@ def pipeline_v1(): | ||
| 113 | # Perform maximum likelihood fitting | 113 | # Perform maximum likelihood fitting |
| 114 | like = ctlike() | 114 | like = ctlike() |
| 115 | like.logFileOpen() # We need this to explicitely open the log file in Python mode | 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 | like["srcmdl"].filename(model_name) | 117 | like["srcmdl"].filename(model_name) |
| 118 | like["outmdl"].filename(result_name) | 118 | like["outmdl"].filename(result_name) |
| 119 | - like["method"].string("BINNED") | ||
| 120 | like["caldb"].string(caldb) | 119 | like["caldb"].string(caldb) |
| 121 | like["irf"].string(irf) | 120 | like["irf"].string(irf) |
| 122 | like.execute() | 121 | like.execute() |
examples/make_unbinned_analysis.py
| @@ -106,10 +106,9 @@ def pipeline_v1(): | @@ -106,10 +106,9 @@ def pipeline_v1(): | ||
| 106 | # Perform maximum likelihood fitting | 106 | # Perform maximum likelihood fitting |
| 107 | like = ctlike() | 107 | like = ctlike() |
| 108 | like.logFileOpen() | 108 | like.logFileOpen() |
| 109 | - like["evfile"].filename(selected_events_name) | 109 | + like["infile"].filename(selected_events_name) |
| 110 | like["srcmdl"].filename(model_name) | 110 | like["srcmdl"].filename(model_name) |
| 111 | like["outmdl"].filename(result_name) | 111 | like["outmdl"].filename(result_name) |
| 112 | - like["method"].string("UNBINNED") | ||
| 113 | like["caldb"].string(caldb) | 112 | like["caldb"].string(caldb) |
| 114 | like["irf"].string(irf) | 113 | like["irf"].string(irf) |
| 115 | like.execute() | 114 | like.execute() |