diff options
| author | dencheva <dencheva@stsci.edu> | 2010-12-17 13:50:06 -0500 |
|---|---|---|
| committer | dencheva <dencheva@stsci.edu> | 2010-12-17 13:50:06 -0500 |
| commit | b398ab81ff63121418a3cec7916827f014c082ea (patch) | |
| tree | e1c2f733e0907e6d9937a7b11d24e1410ffef172 | |
| parent | 67a20f05cc159df68639337256595ca838a4427c (diff) | |
| download | stwcs_hcf-b398ab81ff63121418a3cec7916827f014c082ea.tar.gz | |
Make sure the input to checkFiles is a list
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@11451 fe389314-cf27-0410-b35b-8c050e845b92
| -rw-r--r-- | updatewcs/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index 46d7267..e07e115 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -280,6 +280,9 @@ def checkFiles(input): from pytools.check_files import geis2mef, waiver2mef, checkFiles removed_files = [] newfiles = [] + if not isinstance(input, list): + input=[input] + for file in input: try: imgfits,imgtype = fileutil.isFits(file) |
