diff options
author | Aaron LI <aaronly.me@outlook.com> | 2017-02-19 16:26:40 +0800 |
---|---|---|
committer | Aaron LI <aaronly.me@outlook.com> | 2017-02-19 16:26:40 +0800 |
commit | 2aaf7d8106e7d596654c9ae1cf0fa75fd642f3eb (patch) | |
tree | b524d1fa54a4ad6251d467175b71e9dfea5a6631 | |
parent | 89adbc474890c50963537e8e32bdeff8aa3e10d1 (diff) | |
download | chandra-acis-analysis-2aaf7d8106e7d596654c9ae1cf0fa75fd642f3eb.tar.bz2 |
Setup module 'acispy' and clean 'scripts' directory
Setup a module 'acispy' to hold some generic Python modules for
better/easier reuse, and clean up the 'scripts' directory, which will be
used to hold the CLI tools.
-rw-r--r-- | acispy/__init__.py | 0 | ||||
-rw-r--r-- | acispy/acis.py (renamed from scripts/acis.py) | 0 | ||||
-rw-r--r-- | acispy/ds9.py (renamed from scripts/ds9.py) | 0 | ||||
-rw-r--r-- | acispy/pfiles.py (renamed from scripts/setup_pfiles.py) | 0 | ||||
-rw-r--r-- | acispy/region.py (renamed from scripts/region.py) | 0 | ||||
-rw-r--r-- | acispy/spectrum.py (renamed from scripts/spectrum.py) | 0 | ||||
-rw-r--r-- | scripts/context.py | 16 |
7 files changed, 16 insertions, 0 deletions
diff --git a/acispy/__init__.py b/acispy/__init__.py new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/acispy/__init__.py diff --git a/scripts/acis.py b/acispy/acis.py index 91d9fcf..91d9fcf 100644 --- a/scripts/acis.py +++ b/acispy/acis.py diff --git a/scripts/ds9.py b/acispy/ds9.py index e8c8e88..e8c8e88 100644 --- a/scripts/ds9.py +++ b/acispy/ds9.py diff --git a/scripts/setup_pfiles.py b/acispy/pfiles.py index 8a80a14..8a80a14 100644 --- a/scripts/setup_pfiles.py +++ b/acispy/pfiles.py diff --git a/scripts/region.py b/acispy/region.py index 09e42fa..09e42fa 100644 --- a/scripts/region.py +++ b/acispy/region.py diff --git a/scripts/spectrum.py b/acispy/spectrum.py index ad38b0d..ad38b0d 100644 --- a/scripts/spectrum.py +++ b/acispy/spectrum.py diff --git a/scripts/context.py b/scripts/context.py new file mode 100644 index 0000000..b23b2c8 --- /dev/null +++ b/scripts/context.py @@ -0,0 +1,16 @@ +# Copyright (c) 2017 Weitian LI <liweitianux@live.com> +# MIT license + +""" +Portal to 'acispy' module/package +""" + +import os +import sys + +sys.path.insert( + 0, + os.path.abspath(os.path.join(os.path.dirname(__file__), "..")) +) + +import acispy |