aboutsummaryrefslogtreecommitdiffstats
path: root/bin/zea2healpix
diff options
context:
space:
mode:
authorAaron LI <aly@aaronly.me>2017-07-23 09:38:27 +0800
committerAaron LI <aly@aaronly.me>2017-07-23 09:38:27 +0800
commite9c6dbe6d3dafff46ae2b065ff11b9f9a5a28741 (patch)
tree00088464985a55975bd931b32110fb42676e79cb /bin/zea2healpix
parent4476a0ca0e22d6a35bb07da87956d21ec7c49074 (diff)
downloadfg21sim-e9c6dbe6d3dafff46ae2b065ff11b9f9a5a28741.tar.bz2
Update bin scripts to use global "CONFIGS"
Also update copyright year/email and minor cleanups Signed-off-by: Aaron LI <aly@aaronly.me>
Diffstat (limited to 'bin/zea2healpix')
-rwxr-xr-xbin/zea2healpix13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/zea2healpix b/bin/zea2healpix
index 4eb25a9..827615d 100755
--- a/bin/zea2healpix
+++ b/bin/zea2healpix
@@ -1,6 +1,7 @@
#!/usr/bin/env python3
+# -*- mode: python -*-
#
-# Copyright (c) 2016 Weitian LI <liweitianux@live.com>
+# Copyright (c) 2016-2017 Weitian LI <weitian@aaronly.me>
# MIT license
"""
@@ -21,7 +22,7 @@ import argparse
import logging
import fg21sim
-from fg21sim.configs import configs
+from fg21sim.configs import CONFIGS
from fg21sim.utils import setup_logging
@@ -51,15 +52,11 @@ def main():
help="be quiet so do not log messages to screen")
args = parser.parse_args()
- if args.quiet:
- log_stream = ""
- else:
- log_stream = None
-
tool = os.path.basename(sys.argv[0])
pkgname = fg21sim.__pkgname__
- setup_logging(dict_config=configs.logging,
+ log_stream = "" if args.quiet else None
+ setup_logging(dict_config=CONFIGS.logging,
level=args.loglevel,
stream=log_stream,
logfile=args.logfile)