summaryrefslogtreecommitdiff
path: root/lib/stwcs/gui
diff options
context:
space:
mode:
Diffstat (limited to 'lib/stwcs/gui')
-rw-r--r--lib/stwcs/gui/apply_headerlet.help6
-rw-r--r--lib/stwcs/gui/apply_headerlet.py4
-rw-r--r--lib/stwcs/gui/attach_headerlet.py3
-rw-r--r--lib/stwcs/gui/delete_headerlet.py3
-rw-r--r--lib/stwcs/gui/pars/apply_headerlet.cfg2
-rw-r--r--lib/stwcs/gui/pars/apply_headerlet.cfgspc2
-rw-r--r--lib/stwcs/gui/pars/archive_headerlet.cfg1
-rw-r--r--lib/stwcs/gui/pars/archive_headerlet.cfgspc1
-rw-r--r--lib/stwcs/gui/pars/attach_headerlet.cfg1
-rw-r--r--lib/stwcs/gui/pars/attach_headerlet.cfgspc1
-rw-r--r--lib/stwcs/gui/pars/delete_headerlet.cfg1
-rw-r--r--lib/stwcs/gui/pars/delete_headerlet.cfgspc1
-rw-r--r--lib/stwcs/gui/pars/extract_headerlet.cfg2
-rw-r--r--lib/stwcs/gui/pars/extract_headerlet.cfgspc2
-rw-r--r--lib/stwcs/gui/pars/restore_headerlet.cfg1
-rw-r--r--lib/stwcs/gui/pars/restore_headerlet.cfgspc1
-rw-r--r--lib/stwcs/gui/pars/write_headerlet.cfg1
-rw-r--r--lib/stwcs/gui/pars/write_headerlet.cfgspc1
-rw-r--r--lib/stwcs/gui/restore_headerlet.help2
-rw-r--r--lib/stwcs/gui/restore_headerlet.py5
20 files changed, 27 insertions, 14 deletions
diff --git a/lib/stwcs/gui/apply_headerlet.help b/lib/stwcs/gui/apply_headerlet.help
index 2ddb2e4..15c81a0 100644
--- a/lib/stwcs/gui/apply_headerlet.help
+++ b/lib/stwcs/gui/apply_headerlet.help
@@ -34,7 +34,5 @@ wcsname: string
Name to be assigned to this alternate WCS
WCSNAME is a required keyword in a Headerlet but this allows the
user to change it as desired.
-
-verbose: False or a python logging level
- (one of 'INFO', 'DEBUG' logging levels)
- (an integer representing a logging level)
+logging: boolean
+ enable file logging
diff --git a/lib/stwcs/gui/apply_headerlet.py b/lib/stwcs/gui/apply_headerlet.py
index 0a93104..1b97e38 100644
--- a/lib/stwcs/gui/apply_headerlet.py
+++ b/lib/stwcs/gui/apply_headerlet.py
@@ -38,7 +38,7 @@ def run(configObj=None):
headerlet.apply_headerlet_as_primary(configObj['filename'],
configObj['hdrlet'],attach=configObj['attach'],
archive=configObj['archive'],force=configObj['force'],
- verbose=configObj['verbose'])
+ logging=configObj['logging'])
else:
wcsname = configObj['wcsname']
if wcsname in ['',' ','INDEF']: wcsname = None
@@ -50,5 +50,5 @@ def run(configObj=None):
headerlet.apply_headerlet_as_alternate(configObj['filename'],
configObj['hdrlet'], attach=configObj['attach'],
wcsname=wcsname, wcskey=wcskey,
- verbose=configObj['verbose'])
+ logging=configObj['logging'])
diff --git a/lib/stwcs/gui/attach_headerlet.py b/lib/stwcs/gui/attach_headerlet.py
index c68bbfe..e33fdf2 100644
--- a/lib/stwcs/gui/attach_headerlet.py
+++ b/lib/stwcs/gui/attach_headerlet.py
@@ -32,5 +32,6 @@ def getHelpAsString(docstring=False):
def run(configObj=None):
- headerlet.attach_headerlet(configObj['filename'],configObj['hdrlet'])
+ headerlet.attach_headerlet(configObj['filename'],configObj['hdrlet'],
+ configObj['logging'])
diff --git a/lib/stwcs/gui/delete_headerlet.py b/lib/stwcs/gui/delete_headerlet.py
index e33bb91..24a2ba2 100644
--- a/lib/stwcs/gui/delete_headerlet.py
+++ b/lib/stwcs/gui/delete_headerlet.py
@@ -46,5 +46,6 @@ def run(configObj=None):
headerlet.delete_headerlet(configObj['filename'],
hdrname = configObj['hdrname'],
hdrext = configObj['hdrext'],
- distname = configObj['distname'])
+ distname = configObj['distname'],
+ logging = configObj['logging'])
diff --git a/lib/stwcs/gui/pars/apply_headerlet.cfg b/lib/stwcs/gui/pars/apply_headerlet.cfg
index ae97297..06d6daf 100644
--- a/lib/stwcs/gui/pars/apply_headerlet.cfg
+++ b/lib/stwcs/gui/pars/apply_headerlet.cfg
@@ -7,4 +7,4 @@ archive = True
force = False
wcskey = ""
wcsname = ""
-verbose = False
+logging = False
diff --git a/lib/stwcs/gui/pars/apply_headerlet.cfgspc b/lib/stwcs/gui/pars/apply_headerlet.cfgspc
index 240dcec..648e562 100644
--- a/lib/stwcs/gui/pars/apply_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/apply_headerlet.cfgspc
@@ -7,6 +7,6 @@ archive = boolean_kw(default=True, active_if="_rule1_", comment="Save PRIMARY WC
force = boolean_kw(default=False, active_if="_rule1_", comment="If distortions do not match, force update anyway?")
wcskey = option_kw("A","B","C","D","E","F","G","H","I","J","K","L","M","N","P","Q","R","S","T","U","V","W","X","Y","Z","", default="", inactive_if="_rule1_", comment="Apply headerlet as alternate WCS with this letter")
wcsname = string_kw(default="", inactive_if="_rule1_", comment="Apply headerlet as alternate WCS with this name")
-verbose = boolean_kw(default=False, comment= "Print logging messages?")
+logging = boolean_kw(default=False, comment= "Enable logging to a file")
[ _RULES_ ]
_rule1_ = string_kw(default=True, code='tyfn={"yes":True, "no":False}; OUT = tyfn[VAL]')
diff --git a/lib/stwcs/gui/pars/archive_headerlet.cfg b/lib/stwcs/gui/pars/archive_headerlet.cfg
index 815ce96..97cd7ef 100644
--- a/lib/stwcs/gui/pars/archive_headerlet.cfg
+++ b/lib/stwcs/gui/pars/archive_headerlet.cfg
@@ -11,3 +11,4 @@ d2imfile = ""
author = ""
descrip = ""
history = ""
+logging = False \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/archive_headerlet.cfgspc b/lib/stwcs/gui/pars/archive_headerlet.cfgspc
index d049769..03e67f0 100644
--- a/lib/stwcs/gui/pars/archive_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/archive_headerlet.cfgspc
@@ -11,3 +11,4 @@ d2imfile = string_kw(default="", comment="Name for source of detector correction
author = string_kw(default="", comment="Author name for creator of headerlet")
descrip = string_kw(default="", comment="Short description of headerlet solution")
history = string_kw(default="", comment="Name of ASCII file containing history for headerlet")
+logging = boolean_kw(default=False, comment= "Enable logging to a file") \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/attach_headerlet.cfg b/lib/stwcs/gui/pars/attach_headerlet.cfg
index 772a66d..d131a70 100644
--- a/lib/stwcs/gui/pars/attach_headerlet.cfg
+++ b/lib/stwcs/gui/pars/attach_headerlet.cfg
@@ -1,3 +1,4 @@
_task_name_ = attach_headerlet
filename = ""
hdrlet = ""
+logging = False
diff --git a/lib/stwcs/gui/pars/attach_headerlet.cfgspc b/lib/stwcs/gui/pars/attach_headerlet.cfgspc
index 03dcf0f..bc91bca 100644
--- a/lib/stwcs/gui/pars/attach_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/attach_headerlet.cfgspc
@@ -1,3 +1,4 @@
_task_name_ = string_kw(default="attach_headerlet")
filename = string_kw(default="", comment="FITS image file name")
hdrlet = string_kw(default="", comment="Headerlet FITS filename")
+logging = boolean_kw(default=False, comment= "Enable logging to a file") \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/delete_headerlet.cfg b/lib/stwcs/gui/pars/delete_headerlet.cfg
index f43befa..d156937 100644
--- a/lib/stwcs/gui/pars/delete_headerlet.cfg
+++ b/lib/stwcs/gui/pars/delete_headerlet.cfg
@@ -3,3 +3,4 @@ filename = ""
hdrname = ""
hdrext = None
distname = ""
+logging = False \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/delete_headerlet.cfgspc b/lib/stwcs/gui/pars/delete_headerlet.cfgspc
index 5695130..7b7cc0b 100644
--- a/lib/stwcs/gui/pars/delete_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/delete_headerlet.cfgspc
@@ -3,3 +3,4 @@ filename = string_kw(default="", comment="FITS image file name")
hdrname = string_kw(default="", comment="Delete headerlet with this HDRNAME")
hdrext = integer_or_none_kw(default=None, comment="Delete headerlet from this extension")
distname = string_kw(default="", comment="Delete *ALL* with this DISTNAME")
+logging = boolean_kw(default=False, comment= "Enable logging to a file")
diff --git a/lib/stwcs/gui/pars/extract_headerlet.cfg b/lib/stwcs/gui/pars/extract_headerlet.cfg
index eaf4eff..3dd0a7a 100644
--- a/lib/stwcs/gui/pars/extract_headerlet.cfg
+++ b/lib/stwcs/gui/pars/extract_headerlet.cfg
@@ -4,4 +4,4 @@ output = ""
extnum = None
hdrname = ""
clobber = True
-verbose = False
+logging = False
diff --git a/lib/stwcs/gui/pars/extract_headerlet.cfgspc b/lib/stwcs/gui/pars/extract_headerlet.cfgspc
index 3b173c2..b50d4bf 100644
--- a/lib/stwcs/gui/pars/extract_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/extract_headerlet.cfgspc
@@ -4,4 +4,4 @@ output = string_kw(default="", comment="Output headerlet FITS filename")
extnum = integer_or_none_kw(default=None, comment="FITS extension number of headerlet")
hdrname = string_kw(default="", comment="Unique name(HDRNAME) for headerlet")
clobber = boolean_kw(default=True, comment= "Overwrite existing headerlet FITS file?")
-verbose = boolean_kw(default=False, comment= "Print logging messages?")
+logging = boolean_kw(default=False, comment= "Enable logging to a file")
diff --git a/lib/stwcs/gui/pars/restore_headerlet.cfg b/lib/stwcs/gui/pars/restore_headerlet.cfg
index a6230a4..b0ec427 100644
--- a/lib/stwcs/gui/pars/restore_headerlet.cfg
+++ b/lib/stwcs/gui/pars/restore_headerlet.cfg
@@ -7,3 +7,4 @@ primary = None
sciext = "SCI"
hdrname = ""
hdrext = None
+logging = False \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/restore_headerlet.cfgspc b/lib/stwcs/gui/pars/restore_headerlet.cfgspc
index 3e713ce..df47e3f 100644
--- a/lib/stwcs/gui/pars/restore_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/restore_headerlet.cfgspc
@@ -7,5 +7,6 @@ primary = integer_or_none_kw(default=None, inactive_if="_rule1_", comment="Heade
sciext = string_kw(default="SCI", inactive_if="_rule1_", comment="EXTNAME of extension with WCS")
hdrname = string_kw(default="", active_if="_rule1_", comment="HDRNAME of headerlet extension to be restored")
hdrext = integer_or_none_kw(default=None, active_if="_rule1_", comment="Extension number for headerlet to be restored")
+logging = boolean_kw(default=False, comment= "Enable logging to a file")
[ _RULES_ ]
_rule1_ = string_kw(default=True, code='from stwcs import wcsutil;from stwcs.wcsutil import headerlet;OUT = headerlet.is_par_blank(VAL)')
diff --git a/lib/stwcs/gui/pars/write_headerlet.cfg b/lib/stwcs/gui/pars/write_headerlet.cfg
index dccff0e..8c2bc8b 100644
--- a/lib/stwcs/gui/pars/write_headerlet.cfg
+++ b/lib/stwcs/gui/pars/write_headerlet.cfg
@@ -14,3 +14,4 @@ sipname = ""
npolfile = ""
d2imfile = ""
attach = True
+logging = Fasle \ No newline at end of file
diff --git a/lib/stwcs/gui/pars/write_headerlet.cfgspc b/lib/stwcs/gui/pars/write_headerlet.cfgspc
index 323ab4c..b8abb2b 100644
--- a/lib/stwcs/gui/pars/write_headerlet.cfgspc
+++ b/lib/stwcs/gui/pars/write_headerlet.cfgspc
@@ -14,3 +14,4 @@ sipname = string_kw(default="", comment="Name for source of polynomial distortio
npolfile = string_kw(default="", comment="Name for source of non-polynomial residuals")
d2imfile = string_kw(default="", comment="Name for source of detector correction table")
attach = boolean_kw(default=True, comment="Create headerlet FITS extension?")
+logging = boolean_kw(default=False, comment= "Enable logging to a file") \ No newline at end of file
diff --git a/lib/stwcs/gui/restore_headerlet.help b/lib/stwcs/gui/restore_headerlet.help
index 710d457..fe07a15 100644
--- a/lib/stwcs/gui/restore_headerlet.help
+++ b/lib/stwcs/gui/restore_headerlet.help
@@ -39,3 +39,5 @@ hdrname: string
hdrext: int or tuple
Headerlet extension number of tuple ('HDRLET',2)
+logging: boolean
+ enable file logging \ No newline at end of file
diff --git a/lib/stwcs/gui/restore_headerlet.py b/lib/stwcs/gui/restore_headerlet.py
index 9de2d3b..1208897 100644
--- a/lib/stwcs/gui/restore_headerlet.py
+++ b/lib/stwcs/gui/restore_headerlet.py
@@ -38,12 +38,13 @@ def run(configObj=None):
headerlet.restore_all_with_distname(configObj['filename'],
configObj['distname'],configObj['primary'],
archive=configObj['archive'],sciext=configObj['sciext'],
- verbose=configObj['verbose'])
+ 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'])
+ archive=configObj['archive'], force=configObj['force'],
+ logging=configObj['logging'])