Commit c5491a31 authored by marc's avatar marc
Browse files

upodated ini file and removed check Telescope class

parent e0f729ec
...@@ -88,8 +88,6 @@ class DTObservationProgram(Ui_mainWindow): ...@@ -88,8 +88,6 @@ class DTObservationProgram(Ui_mainWindow):
def __init__(self, mainWindow): def __init__(self, mainWindow):
logger.info('Initialization of DTObsGUI') logger.info('Initialization of DTObsGUI')
self.TelescopeEnabled = config.get('TestConfig','myDT')
if self.TelescopeEnabled == True:
self.myDT = telescope(setmode='J2000', consoleHost='consoledemo.dmz.camras.nl') self.myDT = telescope(setmode='J2000', consoleHost='consoledemo.dmz.camras.nl')
self.myMeas = Measurements() self.myMeas = Measurements()
...@@ -197,7 +195,6 @@ class DTObservationProgram(Ui_mainWindow): ...@@ -197,7 +195,6 @@ class DTObservationProgram(Ui_mainWindow):
def goToSetpoints(self, setpoints, oneSetpointCompleteSignal=None, progressSignal=None): def goToSetpoints(self, setpoints, oneSetpointCompleteSignal=None, progressSignal=None):
""" Send a list of setpoints to the telescope """ """ Send a list of setpoints to the telescope """
for setpoint_nr, setpoint in enumerate(setpoints): for setpoint_nr, setpoint in enumerate(setpoints):
if self.TelescopeEnabled == True:
self.myDT.setRaDec(setpoint) self.myDT.setRaDec(setpoint)
oneSetpointCompleteSignal.emit(setpoint_nr, 'Slewing') oneSetpointCompleteSignal.emit(setpoint_nr, 'Slewing')
time.sleep(3) time.sleep(3)
......
...@@ -2,4 +2,4 @@ ...@@ -2,4 +2,4 @@
LogLevel: INFO LogLevel: INFO
[TestConfig] [TestConfig]
myDT: False myDT: True
\ No newline at end of file
Supports Markdown
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