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
from astropy import units as u
from astropy.coordinates import SkyCoord
from telescope.telescope import telescope
from telescope.telescope import Telescope
from measurements import Measurements
from metadata import MetaData
from backend import Backend
......@@ -92,17 +92,10 @@ class DTObservationProgram(Ui_mainWindow):
logger.info('Initialization of DTObsGUI')
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))
if not self.demo:
self.myDT = telescope(setmode='J2000', consoleHost=consoleHost)
self.myDT = Telescope(setMode='J2000')
'''
telescopeMode and telescopeOffset required for meta data
'''
......
......@@ -3,8 +3,4 @@ LogLevel: INFO
[TestConfig]
demo: False
#demo: True
[Console]
HostName: consoledemo.dmz.camras.nl
#HostName: console
#demo: True
\ No newline at end of file
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