From ce4cbb2b97a31c398cce7ea1687439971594f493 Mon Sep 17 00:00:00 2001 From: James Davies Date: Fri, 19 May 2017 17:41:00 -0400 Subject: Remove print statement on package import when TEAL tasknames not found --- stwcs/__init__.py | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/stwcs/__init__.py b/stwcs/__init__.py index cd8b0e6..694c3cc 100644 --- a/stwcs/__init__.py +++ b/stwcs/__init__.py @@ -1,15 +1,14 @@ """ STWCS This package provides support for WCS based distortion models and coordinate -transformation. It relies on PyWCS (based on WCSLIB). It consists of two -subpackages: updatewcs and wcsutil. +transformation. It relies on astropy.wcs (based on WCSLIB). It consists of +two subpackages: updatewcs and wcsutil. -updatewcs performs corrections to the -basic WCS and includes other distortion infomation in the science files as -header keywords or file extensions. +updatewcs performs corrections to the basic WCS and includes other distortion +infomation in the science files as header keywords or file extensions. -Wcsutil provides an HSTWCS object which extends pywcs.WCS object and provides -HST instrument specific information as well as methods for coordinate +Wcsutil provides an HSTWCS object which extends astropy.wcs.WCS object and +provides HST instrument specific information as well as methods for coordinate transformation. wcsutil also provides functions for manipulating alternate WCS descriptions in the headers. @@ -21,7 +20,6 @@ from . import distortion from stsci.tools import fileutil from stsci.tools import teal - from .version import * try: @@ -29,4 +27,4 @@ try: teal.print_tasknames(gui.__name__, os.path.dirname(gui.__file__)) print('\n') except: - print('No TEAL-based tasks available for this package!') + pass -- cgit