diff options
Diffstat (limited to 'stwcs/gui')
-rw-r--r-- | stwcs/gui/apply_headerlet.py | 41 | ||||
-rw-r--r-- | stwcs/gui/archive_headerlet.py | 38 | ||||
-rw-r--r-- | stwcs/gui/attach_headerlet.py | 26 | ||||
-rw-r--r-- | stwcs/gui/delete_headerlet.py | 39 | ||||
-rw-r--r-- | stwcs/gui/extract_headerlet.py | 30 | ||||
-rw-r--r-- | stwcs/gui/headerlet_summary.py | 23 | ||||
-rw-r--r-- | stwcs/gui/restore_headerlet.py | 33 | ||||
-rw-r--r-- | stwcs/gui/updatewcs.py | 38 | ||||
-rw-r--r-- | stwcs/gui/write_headerlet.py | 37 |
9 files changed, 156 insertions, 149 deletions
diff --git a/stwcs/gui/apply_headerlet.py b/stwcs/gui/apply_headerlet.py index d517e9f..0cef612 100644 --- a/stwcs/gui/apply_headerlet.py +++ b/stwcs/gui/apply_headerlet.py @@ -1,31 +1,34 @@ +from __future__ import absolute_import, division, print_function import os from stsci.tools import teal, parseinput -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet -__taskname__ = __name__.split('.')[-1] # needed for help string +__taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ -# -#### Interfaces used by TEAL -# +# __version__ = stwcs.__version__ + + +############### Interfaces used by TEAL ############### + def getHelpAsString(docstring=False): """ return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): # start by interpreting filename and hdrlet inputs @@ -37,18 +40,18 @@ def run(configObj=None): # Syntax: apply_headerlet_as_primary(filename, hdrlet, attach=True, # archive=True, force=False, verbose=False) headerlet.apply_headerlet_as_primary(filename, - hdrlet,attach=configObj['attach'], - archive=configObj['archive'],force=configObj['force'], - logging=configObj['logging']) + hdrlet, attach=configObj['attach'], + archive=configObj['archive'], force=configObj['force'], + logging=configObj['logging']) else: wcsname = configObj['wcsname'] - if wcsname in ['',' ','INDEF']: wcsname = None + if wcsname in ['', ' ', 'INDEF']: wcsname = None wcskey = configObj['wcskey'] if wcskey == '': wcskey = None # Call function with properly interpreted input parameters # apply_headerlet_as_alternate(filename, hdrlet, attach=True, # wcskey=None, wcsname=None, verbose=False) headerlet.apply_headerlet_as_alternate(filename, - hdrlet, attach=configObj['attach'], - wcsname=wcsname, wcskey=wcskey, - logging=configObj['logging']) + hdrlet, attach=configObj['attach'], + wcsname=wcsname, wcskey=wcskey, + logging=configObj['logging']) diff --git a/stwcs/gui/archive_headerlet.py b/stwcs/gui/archive_headerlet.py index 7ad3d4d..577a348 100644 --- a/stwcs/gui/archive_headerlet.py +++ b/stwcs/gui/archive_headerlet.py @@ -1,49 +1,49 @@ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import os -from astropy.io import fits from stsci.tools import teal +from .. import __version__ +from ..wcsutil import headerlet -import stwcs -from stwcs.wcsutil import headerlet - -__taskname__ = __name__.split('.')[-1] # needed for help string +__taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +# __version__ = stwcs.__version__ + # #### Interfaces used by TEAL # def getHelpAsString(docstring=False): """ - return useful help from a file in the script directory called __taskname__.help + Return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: helpString += headerlet.archive_as_headerlet.__doc__ else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): - if configObj['hdrname'] in ['',' ','INDEF']: - print('='*60) + if configObj['hdrname'] in ['', ' ', 'INDEF']: + print('=' * 60) print('ERROR:') print(' No valid "hdrname" parameter value provided!') print(' Please restart this task and provide a value for this parameter.') - print('='*60) + print('=' * 60) return - str_kw = ['wcsname','destim','sipname','npolfile','d2imfile', - 'descrip','history','author'] + str_kw = ['wcsname', 'destim', 'sipname', 'npolfile', 'd2imfile', + 'descrip', 'history', 'author'] # create dictionary of remaining parameters, deleting extraneous ones # such as those above @@ -66,4 +66,4 @@ def run(configObj=None): # author=None, descrip=None, history=None, # hdrlet=None, clobber=False) headerlet.archive_as_headerlet(configObj['filename'], configObj['hdrname'], - **cdict) + **cdict) diff --git a/stwcs/gui/attach_headerlet.py b/stwcs/gui/attach_headerlet.py index 873c549..f3ab690 100644 --- a/stwcs/gui/attach_headerlet.py +++ b/stwcs/gui/attach_headerlet.py @@ -1,13 +1,13 @@ +from __future__ import absolute_import, division, print_function import os from stsci.tools import teal +from .. import __version +from ..wcsutil import headerlet -import stwcs -from stwcs.wcsutil import headerlet - -__taskname__ = __name__.split('.')[-1] # needed for help string +__taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +#__version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -16,21 +16,21 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString += eval('.'.join([__package__,__taskname__,'__doc__'])) + helpString += eval('.'.join([__package__, __taskname__, '__doc__'])) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): - headerlet.attach_headerlet(configObj['filename'],configObj['hdrlet'], + headerlet.attach_headerlet(configObj['filename'], configObj['hdrlet'], configObj['logging']) - diff --git a/stwcs/gui/delete_headerlet.py b/stwcs/gui/delete_headerlet.py index b3df5a7..29937f7 100644 --- a/stwcs/gui/delete_headerlet.py +++ b/stwcs/gui/delete_headerlet.py @@ -1,15 +1,15 @@ -from __future__ import print_function -import os +from __future__ import absolute_import, division, print_function +import os from stsci.tools import teal from stsci.tools import parseinput -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet -__taskname__ = __name__.split('.')[-1] # needed for help string +__taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +# __version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -18,35 +18,34 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString += eval('.'.join([__package__,__taskname__,'__doc__'])) + helpString += eval('.'.join([__package__, __taskname__, '__doc__'])) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString def run(configObj=None): if configObj['hdrname'] == '' and configObj['hdrext'] is None and \ - configObj['distname'] == '': - print('='*60) + configObj['distname'] == '': + print('=' * 60) print('ERROR:') print(' No valid "hdrname", "hdrext" or "distname" parameter value provided!') print(' Please restart this task and provide a value for one of these parameters.') - print('='*60) + print('=' * 60) return filename = parseinput.parseinput(configObj['filename'])[0] # Call function with properly interpreted input parameters # Syntax: delete_headerlet(filename, hdrname=None, hdrext=None, distname=None) headerlet.delete_headerlet(filename, - hdrname = configObj['hdrname'], - hdrext = configObj['hdrext'], - distname = configObj['distname'], - logging = configObj['logging']) - + hdrname=configObj['hdrname'], + hdrext=configObj['hdrext'], + distname=configObj['distname'], + logging=configObj['logging']) diff --git a/stwcs/gui/extract_headerlet.py b/stwcs/gui/extract_headerlet.py index 02ecd7a..1e88221 100644 --- a/stwcs/gui/extract_headerlet.py +++ b/stwcs/gui/extract_headerlet.py @@ -1,14 +1,14 @@ -from __future__ import print_function +from __future__ import absolute_import, division, print_function + import os from stsci.tools import teal - -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet __taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +# __version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -17,28 +17,29 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString += eval('.'.join([__package__,__taskname__,'__doc__'])) + helpString += eval('.'.join([__package__, __taskname__, '__doc__'])) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): - if configObj['output'] in ['',' ',None]: - print('='*60) + if configObj['output'] in ['', ' ', None]: + print('=' * 60) print('ERROR:') print(' No valid "output" parameter value provided!') print(' Please restart this task and provide a value for this parameter.') - print('='*60) + print('=' * 60) return # create dictionary of remaining parameters, deleting extraneous ones @@ -55,4 +56,3 @@ def run(configObj=None): # clobber=False, verbose=100) headerlet.extract_headerlet(configObj['filename'], configObj['output'], **cdict) - diff --git a/stwcs/gui/headerlet_summary.py b/stwcs/gui/headerlet_summary.py index 82a3e0c..eac59ee 100644 --- a/stwcs/gui/headerlet_summary.py +++ b/stwcs/gui/headerlet_summary.py @@ -1,12 +1,13 @@ +from __future__ import absolute_import, division, print_function import os from stsci.tools import teal -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet __taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +# __version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -15,19 +16,20 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString += eval('.'.join([__package__,__taskname__,'__doc__'])) + helpString += eval('.'.join([__package__, __taskname__, '__doc__'])) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): # create dictionary of remaining parameters, deleting extraneous ones @@ -43,5 +45,4 @@ def run(configObj=None): # Syntax: headerlet_summary(filename,columns=None,pad=2,maxwidth=None, # output=None,clobber=True,quiet=False) - headerlet.headerlet_summary(configObj['filename'],**cdict) - + headerlet.headerlet_summary(configObj['filename'], **cdict) diff --git a/stwcs/gui/restore_headerlet.py b/stwcs/gui/restore_headerlet.py index 7570d76..790c239 100644 --- a/stwcs/gui/restore_headerlet.py +++ b/stwcs/gui/restore_headerlet.py @@ -1,13 +1,14 @@ +from __future__ import absolute_import, division, print_function import os from stsci.tools import teal -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet __taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +#__version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -16,33 +17,33 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): - if configObj['distname'] not in ['',' ','INDEF']: + if configObj['distname'] not in ['', ' ', 'INDEF']: # Call function with properly interpreted input parameters # Syntax: restore_all_with_distname(filename, distname, primary, # archive=True, sciext='SCI', verbose=False) headerlet.restore_all_with_distname(configObj['filename'], - configObj['distname'],configObj['primary'], - archive=configObj['archive'],sciext=configObj['sciext'], - logging=configObj['logging']) + configObj['distname'], configObj['primary'], + archive=configObj['archive'], sciext=configObj['sciext'], + logging=configObj['logging']) else: # Call function with properly interpreted input parameters # restore_from_headerlet(filename, hdrname=None, hdrext=None, # archive=True, force=False) headerlet.restore_from_headerlet(configObj['filename'], - hdrname=configObj['hdrname'],hdrext=configObj['hdrext'], - archive=configObj['archive'], force=configObj['force'], - logging=configObj['logging']) - + hdrname=configObj['hdrname'], hdrext=configObj['hdrext'], + archive=configObj['archive'], force=configObj['force'], + logging=configObj['logging']) diff --git a/stwcs/gui/updatewcs.py b/stwcs/gui/updatewcs.py index 3dacb67..b5dc700 100644 --- a/stwcs/gui/updatewcs.py +++ b/stwcs/gui/updatewcs.py @@ -1,19 +1,22 @@ -from __future__ import print_function +from __future__ import absolute_import, division, print_function + import os from astropy.io import fits from stsci.tools import parseinput from stsci.tools import fileutil from stsci.tools import teal -import stwcs -from stwcs import updatewcs -from stwcs.wcsutil import convertwcs +from .. import __version__ +from .. import updatewcs + + +allowed_corr_dict = {'vacorr': 'VACorr', 'tddcorr': 'TDDCorr', 'npolcorr': 'NPOLCorr', + 'd2imcorr': 'DET2IMCorr'} -allowed_corr_dict = {'vacorr':'VACorr','tddcorr':'TDDCorr','npolcorr':'NPOLCorr','d2imcorr':'DET2IMCorr'} __taskname__ = __name__.split('.')[-1] # needed for help string __package__ = updatewcs.__name__ -__version__ = stwcs.__version__ +#__version__ = stwcs.__version__ # #### Interfaces used by TEAL @@ -23,24 +26,24 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: - helpString += eval('.'.join([__package__,__taskname__,'__doc__'])) + helpString += eval('.'.join([__package__, __taskname__, '__doc__'])) else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): # Interpret primary parameters from configObj instance - extname = configObj['extname'] input = configObj['input'] # create dictionary of remaining parameters, deleting extraneous ones @@ -53,7 +56,7 @@ def run(configObj=None): del cdict['extname'] # parse input - input,altfiles = parseinput.parseinput(configObj['input']) + input, altfiles = parseinput.parseinput(configObj['input']) # Insure that all input files have a correctly archived # set of OPUS WCS keywords @@ -69,7 +72,7 @@ def run(configObj=None): # Check to insure that there is a valid reference file to be used idctab = fits.getval(file, 'idctab') if not os.path.exists(fileutil.osfn(idctab)): - print('No valid distortion reference file ',idctab,' found in ',file,'!') + print('No valid distortion reference file ', idctab, ' found in ', file, '!') raise ValueError # Re-define 'cdict' to only have switches for steps supported by that instrument @@ -78,7 +81,7 @@ def run(configObj=None): # for file in input: # get instrument name from input file - instr = fits.getval(file,'INSTRUME') + instr = fits.getval(file, 'INSTRUME') # make copy of input parameters dict for this file fdict = cdict.copy() # Remove any parameter that is not part of this instrument's allowed corrections @@ -86,5 +89,4 @@ def run(configObj=None): if allowed_corr_dict[step] not in updatewcs.apply_corrections.allowed_corrections[instr]: fdict[step] # Call 'updatewcs' on correctly archived file - updatewcs.updatewcs(file,**fdict) - + updatewcs.updatewcs(file, **fdict) diff --git a/stwcs/gui/write_headerlet.py b/stwcs/gui/write_headerlet.py index e18bed8..56520b3 100644 --- a/stwcs/gui/write_headerlet.py +++ b/stwcs/gui/write_headerlet.py @@ -1,15 +1,15 @@ -from __future__ import print_function +from __future__ import absolute_import, division, print_function import os from stsci.tools import teal from stsci.tools import parseinput -import stwcs -from stwcs.wcsutil import headerlet +from .. import __version__ +from ..wcsutil import headerlet __taskname__ = __name__.split('.')[-1] # needed for help string __package__ = headerlet.__name__ -__version__ = stwcs.__version__ +#__version__ = stwcs.__version__ # #### Interfaces used by TEAL # @@ -18,43 +18,44 @@ def getHelpAsString(docstring=False): return useful help from a file in the script directory called __taskname__.help """ install_dir = os.path.dirname(__file__) - htmlfile = os.path.join(install_dir,'htmlhelp',__taskname__+'.html') - helpfile = os.path.join(install_dir,__taskname__+'.help') + htmlfile = os.path.join(install_dir, 'htmlhelp', __taskname__ + '.html') + helpfile = os.path.join(install_dir, __taskname__ + '.help') if docstring or (not docstring and not os.path.exists(htmlfile)): - helpString = __taskname__+' Version '+__version__+'\n\n' + helpString = __taskname__ + ' Version ' + __version__ + '\n\n' if os.path.exists(helpfile): - helpString += teal.getHelpFileAsString(__taskname__,__file__) + helpString += teal.getHelpFileAsString(__taskname__, __file__) else: helpString += headerlet.write_headerlet.__doc__ else: - helpString = 'file://'+htmlfile + helpString = 'file://' + htmlfile return helpString + def run(configObj=None): - flist,oname = parseinput.parseinput(configObj['filename']) + flist, oname = parseinput.parseinput(configObj['filename']) if len(flist) == 0: - print('='*60) + print('=' * 60) print('ERROR:') print(' No valid "filename" parameter value provided!') print(' Please check the working directory and restart this task.') - print('='*60) + print('=' * 60) return - if configObj['hdrname'] in ['',' ','INDEF']: - print('='*60) + if configObj['hdrname'] in ['', ' ', 'INDEF']: + print('=' * 60) print('ERROR:') print(' No valid "hdrname" parameter value provided!') print(' Please restart this task and provide a value for this parameter.') - print('='*60) + print('=' * 60) return - if configObj['output'] in ['',' ','INDEF']: + if configObj['output'] in ['', ' ', 'INDEF']: configObj['output'] = None - str_kw = ['wcsname','destim','sipname','npolfile','d2imfile', - 'descrip','history','author','output','catalog'] + str_kw = ['wcsname', 'destim', 'sipname', 'npolfile', 'd2imfile', + 'descrip', 'history', 'author', 'output', 'catalog'] # create dictionary of remaining parameters, deleting extraneous ones # such as those above |