aboutsummaryrefslogtreecommitdiffstats
path: root/astro/21cm
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-11-22 09:43:53 +0800
committerAaron LI <aly@aaronly.me>2017-11-22 09:48:43 +0800
commitb371bff663a4e29fe673774fccf9bcc2ddba341c (patch)
tree1fe95cc1efe0a07674a3c9cb23bddf0986dce8e5 /astro/21cm
parent0b8214ceef56f23154e131d30afea593dad64a4a (diff)
downloadatoolbox-b371bff663a4e29fe673774fccf9bcc2ddba341c.tar.bz2
Improve logging format
Diffstat (limited to 'astro/21cm')
-rwxr-xr-xastro/21cm/get_slice_zfreq.py3
-rwxr-xr-xastro/21cm/make_lightcone.py3
2 files changed, 4 insertions, 2 deletions
diff --git a/astro/21cm/get_slice_zfreq.py b/astro/21cm/get_slice_zfreq.py
index 5687160..f6b5dda 100755
--- a/astro/21cm/get_slice_zfreq.py
+++ b/astro/21cm/get_slice_zfreq.py
@@ -22,7 +22,8 @@ from astropy.cosmology import FlatLambdaCDM
from z2freq import z2freq, freq2z
-logging.basicConfig(level=logging.INFO)
+logging.basicConfig(level=logging.INFO,
+ format="[%(levelname)s:%(lineno)d] %(message)s")
logger = logging.getLogger()
cosmo = FlatLambdaCDM(H0=71, Om0=0.27)
diff --git a/astro/21cm/make_lightcone.py b/astro/21cm/make_lightcone.py
index 75f0d19..08ce0af 100755
--- a/astro/21cm/make_lightcone.py
+++ b/astro/21cm/make_lightcone.py
@@ -76,7 +76,8 @@ from astropy.cosmology import FlatLambdaCDM
from astropy.wcs import WCS
-logging.basicConfig(level=logging.INFO)
+logging.basicConfig(level=logging.INFO,
+ format="[%(levelname)s:%(lineno)d] %(message)s")
logger = logging.getLogger()