"""Take a series of exposures at different focus positions to estimate best focus.
"""
import TUI.Base.BaseFocusScript
# make script reload also reload BaseFocusScript
reload(TUI.Base.BaseFocusScript)
SlitviewerFocusScript = TUI.Base.BaseFocusScript.SlitviewerFocusScript

Debug = False # run in debug-only mode (which doesn't DO anything, it just pretends)?
HelpURL = "Scripts/BuiltInScripts/InstFocus.html"

class ScriptClass(SlitviewerFocusScript):
    def __init__(self, sr):
        """The setup script; run once when the script runner
        window is created.
        """
        SlitviewerFocusScript.__init__(self,
            sr = sr,
            gcamActor = "tcam",
            instName = "TSpec",
            imageViewerTLName = "Guide.TSpec Slitviewer",
            defBoreXY = [None, -5.0],
            doWindow = False,
            helpURL = HelpURL,
            debug = Debug,
        )

"""Take a series of exposures at different focus positions to estimate best focus.

History:
2008-03-25 ROwen    First version
2008-04-03 ROwen    Changed doWindow to True because the TripleSpec slitviewer can now window
"""
import TUI.Base.BaseFocusScript
# make script reload also reload BaseFocusScript
reload(TUI.Base.BaseFocusScript)
SlitviewerFocusScript = TUI.Base.BaseFocusScript.SlitviewerFocusScript

Debug = False # run in debug-only mode (which doesn't DO anything, it just pretends)?
HelpURL = "Scripts/BuiltInScripts/InstFocus.html"

class ScriptClass(SlitviewerFocusScript):
    def __init__(self, sr):
        """The setup script; run once when the script runner
        window is created.
        """
        SlitviewerFocusScript.__init__(self,
            sr = sr,
            gcamActor = "tcam",
            instName = "TSpec",
            imageViewerTLName = "Guide.TSpec Slitviewer",
            defBoreXY = [None, -5.0],
            doWindow = True,
            helpURL = HelpURL,
            debug = Debug,
        )

Change TSpec focus script to use windowing (now that it is supported).
Change TSpec focus script to use windowing (now that it is supported).


git-svn-id: a38512e6531051f4ba6aaa1c8358347ddeca2e1b@117751 b00c9580-4927-0410-8824-811d448ea4c7
