Commit db932f086711f04c19447711f1630239b57e7e5f
1 parent
fe8168a9
Minor script modifications.
Showing
2 changed files
with
4 additions
and
6 deletions
cscripts/cta_kb_bkgrates.py
| ... | ... | @@ -105,10 +105,8 @@ if __name__ == '__main__': |
| 105 | 105 | for irfname in irfs: |
| 106 | 106 | |
| 107 | 107 | # Build background filename |
| 108 | - head, tail = os.path.split(irfname) | |
| 109 | - irf = tail.strip(".dat") | |
| 110 | - filename = "bkg_"+irf+".txt" | |
| 111 | - print(filename) | |
| 108 | + fname = "bkg_"+os.path.basename(irf).strip(".dat")+".txt" | |
| 109 | + print(fname) | |
| 112 | 110 | |
| 113 | 111 | # Make background file |
| 114 | - make_file_function(irfname, filename) | |
| 112 | + make_file_function(irf, fname) | ... | ... |
cscripts/cta_kb_root2caldb.py
| ... | ... | @@ -7,7 +7,7 @@ |
| 7 | 7 | # area (i.e. the area before applying any theta cut). This is required by |
| 8 | 8 | # GammaLib as the maximum likelihood analysis does not imply any theta cut. |
| 9 | 9 | # |
| 10 | -# Copyright (C) 2014 Juergen Knoedlseder | |
| 10 | +# Copyright (C) 2014-2016 Juergen Knoedlseder | |
| 11 | 11 | # |
| 12 | 12 | # This program is free software: you can redistribute it and/or modify |
| 13 | 13 | # it under the terms of the GNU General Public License as published by | ... | ... |