aboutsummaryrefslogtreecommitdiffstats
path: root/astro/oskar/taper_sky.py
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-22 22:24:24 +0800
committerAaron LI <aly@aaronly.me>2017-11-22 22:24:24 +0800
commit7f2c4e55d04ba56e304d7aeca47a84c4aecb260d (patch)
treecbee618fcbf05be7cf95bc8f4410b2e99aaaf424 /astro/oskar/taper_sky.py
parenta5be7e640b41ab2a13b729fdf7c74ff33af49430 (diff)
downloadatoolbox-7f2c4e55d04ba56e304d7aeca47a84c4aecb260d.tar.bz2
Minor improves to output/logging
Diffstat (limited to 'astro/oskar/taper_sky.py')
-rwxr-xr-xastro/oskar/taper_sky.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/astro/oskar/taper_sky.py b/astro/oskar/taper_sky.py
index f70b47c..132919b 100755
--- a/astro/oskar/taper_sky.py
+++ b/astro/oskar/taper_sky.py
@@ -23,8 +23,9 @@ from scipy import interpolate
import astropy.io.fits as fits
-logging.basicConfig(level=logging.INFO)
-logger = logging.getLogger(os.path.basename(sys.argv[0]))
+logging.basicConfig(level=logging.INFO,
+ format="[%(levelname)s:%(lineno)d] %(message)s")
+logger = logging.getLogger()
def make2d(w1d, x=None):