aboutsummaryrefslogtreecommitdiffstats
path: root/bin/healpix2hpx
diff options
context:
space:
mode:
Diffstat (limited to 'bin/healpix2hpx')
-rwxr-xr-xbin/healpix2hpx13
1 files changed, 5 insertions, 8 deletions
diff --git a/bin/healpix2hpx b/bin/healpix2hpx
index ed4b66e..63770e9 100755
--- a/bin/healpix2hpx
+++ b/bin/healpix2hpx
@@ -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
"""
@@ -14,7 +15,7 @@ import argparse
import logging
import fg21sim
-from fg21sim.configs import configs
+from fg21sim.configs import CONFIGS
from fg21sim.utils import setup_logging
@@ -35,15 +36,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)