Skip to content

Commit 9e9f67a

Browse files
make scripts runnable
1 parent 2e80201 commit 9e9f67a

File tree

4 files changed

+8
-2
lines changed

4 files changed

+8
-2
lines changed

bxa_fitbkg.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/usr/bin/env python
12
from autobackgroundmodel.fitbkg import main
23
main()

bxa_fitbkgkde.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
1+
#!/usr/bin/env python
12
from autobackgroundmodel.fitbkgkde import main
23
main()

fixkeywords.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function, division
32
import numpy
43
import sys
54
import astropy.io.fits as pyfits

gal.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
#!/usr/bin/env python
2-
from __future__ import print_function
32
import astropy.io.fits as pyfits
43
import requests
54

@@ -30,6 +29,12 @@ def get_gal_nh(ra, dec):
3029
if __name__ == '__main__':
3130
import sys, os
3231
cache = []
32+
if len(sys.argv) == 1:
33+
print("SYNOPSIS: gal.py filename1.pha filename2.pha")
34+
print()
35+
print("gal.py requests the total Milky Way column density from swift.ac.uk")
36+
print("which is then stored in filename1.pha.nh as a plain ASCII number")
37+
sys.exit(0)
3338
for infile in sys.argv[1:]:
3439
outfile = infile + '.nh'
3540
if not os.path.exists(outfile):

0 commit comments

Comments
 (0)