diff options
author | Aaron LI <aly@aaronly.me> | 2017-07-23 09:38:27 +0800 |
---|---|---|
committer | Aaron LI <aly@aaronly.me> | 2017-07-23 09:38:27 +0800 |
commit | e9c6dbe6d3dafff46ae2b065ff11b9f9a5a28741 (patch) | |
tree | 00088464985a55975bd931b32110fb42676e79cb /bin/make-ska1low-model | |
parent | 4476a0ca0e22d6a35bb07da87956d21ec7c49074 (diff) | |
download | fg21sim-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/make-ska1low-model')
-rwxr-xr-x | bin/make-ska1low-model | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/bin/make-ska1low-model b/bin/make-ska1low-model index 641d5a2..8ae69dc 100755 --- a/bin/make-ska1low-model +++ b/bin/make-ska1low-model @@ -1,4 +1,5 @@ #!/usr/bin/env python3 +# -*- mode: python -*- # # Copyright (c) 2017 Weitian LI <weitian@aaronly.me> # MIT license @@ -17,7 +18,7 @@ import logging from pkg_resources import resource_exists, resource_filename -from fg21sim.configs import configs +from fg21sim.configs import CONFIGS from fg21sim.utils import setup_logging from fg21sim.uvsim import telescope @@ -52,7 +53,7 @@ def main(): args = parser.parse_args() loglevel = "DEBUG" if args.debug else "INFO" - setup_logging(dict_config=configs.logging, level=loglevel) + setup_logging(dict_config=CONFIGS.logging, level=loglevel) tool = os.path.basename(sys.argv[0]) logger = logging.getLogger(tool) logger.info("COMMAND: {0}".format(" ".join(sys.argv))) |