From b5f4204747f7e4105049713b40d7bca0fae052e5 Mon Sep 17 00:00:00 2001 From: hack Date: Tue, 25 Oct 2011 21:25:35 +0000 Subject: Merging changes from 'stwcs_hdrlet' branch (r18787 - r13909) into trunk. This version of STWCS (0.9.1) provides support for headerlets based on 'Headerlet Design' wiki document, and includes TEAL interfaces for all public headerlet functions. It also moves the TEAL interface for 'updatewcs' from 'astrodither' to this package. The TEAL interaces have been included as a new 'gui' sub-package in order to keep them separate from the remainder of the package's functionality. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13910 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/__init__.py | 15 ++++++++++----- 1 file changed, 10 insertions(+), 5 deletions(-) (limited to 'lib/stwcs/__init__.py') diff --git a/lib/stwcs/__init__.py b/lib/stwcs/__init__.py index 5b3f106..3c8879d 100644 --- a/lib/stwcs/__init__.py +++ b/lib/stwcs/__init__.py @@ -15,17 +15,15 @@ descriptions in the headers. """ from __future__ import division # confidence high +import os import distortion import pywcs from stsci.tools import fileutil +from stsci.tools import teal __docformat__ = 'restructuredtext' -DEGTORAD = fileutil.DEGTORAD -RADTODEG = fileutil.RADTODEG - - if False : __version__ = '' __svn_version = '' @@ -37,7 +35,7 @@ if False : except: pass else : - __version__ = '0.9' + __version__ = '0.9.1' try: @@ -45,3 +43,10 @@ try: __setup_datetime__) except ImportError: __svn_version__ = 'Unable to determine SVN revision' + +try: + import gui + teal.print_tasknames(gui.__name__, os.path.dirname(gui.__file__)) + print '\n' +except: + print 'No TEAL-based tasks available for this package!' -- cgit