Skip to content

Commit

Permalink
Remove most plotting windows
Browse files Browse the repository at this point in the history
  • Loading branch information
albireox committed Feb 15, 2022
1 parent cfaaa9b commit debc81a
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 24 deletions.
28 changes: 14 additions & 14 deletions TUI/LoadStdModules.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,16 @@
import TUI.TUIMenu.PythonWindow
import TUI.TUIMenu.UsersWindow
import TUI.Inst.APOGEE.APOGEEWindow
import TUI.Inst.APOGEEQL.APOGEEQLWindow
# import TUI.Inst.APOGEEQL.APOGEEQLWindow
import TUI.Inst.BOSS.BOSSWindow
import TUI.Inst.Guide.FocusPlotWindow
import TUI.Inst.Guide.GuideWindow
# import TUI.Inst.Guide.GuideWindow
import TUI.Inst.GuideMonitor.BOSSMonitorWindow
import TUI.Inst.GuideMonitor.FluxMonitorWindow
import TUI.Inst.GuideMonitor.FocusMonitorWindow
import TUI.Inst.GuideMonitor.GuideMonitorWindow
import TUI.Inst.GuideMonitor.ScaleMonitorWindow
import TUI.Inst.GuideMonitor.SeeingMonitorWindow
# import TUI.Inst.GuideMonitor.FluxMonitorWindow
# import TUI.Inst.GuideMonitor.FocusMonitorWindow
# import TUI.Inst.GuideMonitor.GuideMonitorWindow
# import TUI.Inst.GuideMonitor.ScaleMonitorWindow
# import TUI.Inst.GuideMonitor.SeeingMonitorWindow
import TUI.Misc.Alerts.AlertsWindow
import TUI.Misc.Interlocks.InterlocksWindow
import TUI.Misc.MCP.MCPWindow
Expand All @@ -43,16 +43,16 @@ def loadAll():
TUI.TUIMenu.PythonWindow.addWindow(tlSet)
TUI.TUIMenu.UsersWindow.addWindow(tlSet)
TUI.Inst.APOGEE.APOGEEWindow.addWindow(tlSet)
TUI.Inst.APOGEEQL.APOGEEQLWindow.addWindow(tlSet)
# TUI.Inst.APOGEEQL.APOGEEQLWindow.addWindow(tlSet)
TUI.Inst.BOSS.BOSSWindow.addWindow(tlSet)
TUI.Inst.Guide.FocusPlotWindow.addWindow(tlSet)
TUI.Inst.Guide.GuideWindow.addWindow(tlSet)
# TUI.Inst.Guide.GuideWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.BOSSMonitorWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.FluxMonitorWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.FocusMonitorWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.GuideMonitorWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.ScaleMonitorWindow.addWindow(tlSet)
TUI.Inst.GuideMonitor.SeeingMonitorWindow.addWindow(tlSet)
# TUI.Inst.GuideMonitor.FluxMonitorWindow.addWindow(tlSet)
# TUI.Inst.GuideMonitor.FocusMonitorWindow.addWindow(tlSet)
# TUI.Inst.GuideMonitor.GuideMonitorWindow.addWindow(tlSet)
# TUI.Inst.GuideMonitor.ScaleMonitorWindow.addWindow(tlSet)
# TUI.Inst.GuideMonitor.SeeingMonitorWindow.addWindow(tlSet)
TUI.Misc.Alerts.AlertsWindow.addWindow(tlSet)
TUI.Misc.Interlocks.InterlocksWindow.addWindow(tlSet)
TUI.Misc.MCP.MCPWindow.addWindow(tlSet)
Expand Down
18 changes: 9 additions & 9 deletions TUI/Main.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
import numpy
numpy.seterr(all="ignore") # suppress "Warning: invalid value encountered in divide"
import matplotlib
matplotlib.use("TkAgg")
matplotlib.use("Agg")
# controls the background of the axis label regions (which default to gray)
matplotlib.rc("figure", facecolor="white")
matplotlib.rc("axes", titlesize="medium") # default is large, which is too big
Expand Down Expand Up @@ -105,21 +105,21 @@ def runTUI():
tkRoot.tk.call("console", "hide")
except Tkinter.TclError:
pass

# create and obtain the TUI model
tuiModel = TUI.Models.getModel("tui")

# set up background tasks
backgroundHandler = TUI.BackgroundTasks.BackgroundKwds()

# get locations to look for windows
addPathList = TUI.TUIPaths.getAddPaths()

# add additional paths to sys.path
sys.path += addPathList

TUI.LoadStdModules.loadAll()

# load additional windows modules
for winPath in addPathList:
TUI.WindowModuleUtil.loadWindows(
Expand All @@ -130,18 +130,18 @@ def runTUI():

# load scripts
TUI.Base.ScriptLoader.reopenScriptWindows()

# add the main menu
TUI.MenuBar.MenuBar()

tuiModel.logMsg(
"%s %s: ready to connect" % (TUI.Version.ApplicationName, TUI.Version.VersionName)
)
startTimeStr = time.strftime("%Y-%m-%dT%H:%M:%S")
platformStr = getPlatform()
sys.stdout.write("%s %s running on %s started %s\n" % \
(TUI.Version.ApplicationName, TUI.Version.VersionName, platformStr, startTimeStr))

tuiModel.reactor.run()

if __name__ == "__main__":
Expand Down
2 changes: 1 addition & 1 deletion TUI/Version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
VersionStr = "1.7.16 2022-01-06"
VersionStr = "1.7.17b0 2022-02-14"
VersionName, VersionDate = VersionStr.split()
ApplicationName = "STUI"

0 comments on commit debc81a

Please sign in to comment.