Commit 01483c63 authored by marc's avatar marc

Take out host control from DTObs. Changed to Telescope class i.s.o.

telescope.
parent 6e7719e0
Pipeline #13 canceled with stages
...@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow ...@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow
from astropy import units as u from astropy import units as u
from astropy.coordinates import SkyCoord from astropy.coordinates import SkyCoord
from telescope.telescope import telescope from telescope.telescope import Telescope
from measurements import Measurements from measurements import Measurements
from metadata import MetaData from metadata import MetaData
from backend import Backend from backend import Backend
...@@ -92,17 +92,10 @@ class DTObservationProgram(Ui_mainWindow): ...@@ -92,17 +92,10 @@ class DTObservationProgram(Ui_mainWindow):
logger.info('Initialization of DTObsGUI') logger.info('Initialization of DTObsGUI')
self.demo = config.getboolean('TestConfig','demo') self.demo = config.getboolean('TestConfig','demo')
consoleHost = config.get('Console','HostName')
if consoleHost == 'console':
if socket.gethostname()=="mercurius":
logging.warning("You are using the actual console, not a demo!")
else:
raise ValueError("Talking to the actual console can only be done from mercurius")
logger.debug('Demo status is: {}'.format(self.demo)) logger.debug('Demo status is: {}'.format(self.demo))
if not self.demo: if not self.demo:
self.myDT = telescope(setmode='J2000', consoleHost=consoleHost) self.myDT = Telescope(setMode='J2000')
''' '''
telescopeMode and telescopeOffset required for meta data telescopeMode and telescopeOffset required for meta data
''' '''
......
...@@ -4,7 +4,3 @@ LogLevel: INFO ...@@ -4,7 +4,3 @@ LogLevel: INFO
[TestConfig] [TestConfig]
demo: False demo: False
#demo: True #demo: True
[Console]
HostName: consoledemo.dmz.camras.nl
#HostName: console
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment