Commit 407a8bd5c406d47a7314e6c8ea7356814ea9feae
1 parent
46feb795
Adapt for 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
1 changed file
with
3 additions
and
5 deletions
test/test_ctools.sh
| ... | ... | @@ -2,7 +2,7 @@ |
| 2 | 2 | # ========================================================================== |
| 3 | 3 | # This script tests all ctools |
| 4 | 4 | # |
| 5 | -# Copyright (C) 2011 Jurgen Knodlseder | |
| 5 | +# Copyright (C) 2011-2012 Jurgen Knodlseder | |
| 6 | 6 | # |
| 7 | 7 | # This program is free software: you can redistribute it and/or modify |
| 8 | 8 | # it under the terms of the GNU General Public License as published by |
| ... | ... | @@ -158,10 +158,9 @@ echo " ok" |
| 158 | 158 | # Test ctlike |
| 159 | 159 | # =========== |
| 160 | 160 | echo -n "Test ctlike: " |
| 161 | -$ctlike cntmap="cntmap.fits" \ | |
| 161 | +$ctlike infile="cntmap.fits" \ | |
| 162 | 162 | srcmdl="data/crab.xml" \ |
| 163 | 163 | outmdl="results_binned.xml" \ |
| 164 | - method="BINNED" \ | |
| 165 | 164 | caldb="irf" \ |
| 166 | 165 | irf="kb_E_50h_v3" |
| 167 | 166 | echo -n "." |
| ... | ... | @@ -172,10 +171,9 @@ else |
| 172 | 171 | echo " results_binned.xml file is not valid" |
| 173 | 172 | exit 1 |
| 174 | 173 | fi |
| 175 | -$ctlike evfile="selected_events.fits" \ | |
| 174 | +$ctlike infile="selected_events.fits" \ | |
| 176 | 175 | srcmdl="data/crab.xml" \ |
| 177 | 176 | outmdl="results_unbinned.xml" \ |
| 178 | - method="UNBINNED" \ | |
| 179 | 177 | caldb="irf" \ |
| 180 | 178 | irf="kb_E_50h_v3" |
| 181 | 179 | echo -n "." | ... | ... |