Commit db932f086711f04c19447711f1630239b57e7e5f

Authored by Jürgen Knödlseder
1 parent fe8168a9

Minor script modifications.

cscripts/cta_kb_bkgrates.py
@@ -105,10 +105,8 @@ if __name__ == '__main__': @@ -105,10 +105,8 @@ if __name__ == '__main__':
105 for irfname in irfs: 105 for irfname in irfs:
106 106
107 # Build background filename 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 # Make background file 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 +7,7 @@
7 # area (i.e. the area before applying any theta cut). This is required by 7 # area (i.e. the area before applying any theta cut). This is required by
8 # GammaLib as the maximum likelihood analysis does not imply any theta cut. 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 # This program is free software: you can redistribute it and/or modify 12 # This program is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU General Public License as published by 13 # it under the terms of the GNU General Public License as published by