Commit a81b705d authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema

Remove separate trace2port host

parent 0ef6faee
......@@ -4,7 +4,4 @@ Port_Read_J2000 : 11030
Port_Write_J2000 : 11031
Port_Write_AzEl : 11041
Port_Write_Offset: 11011
[Trace2Port]
HostName: consoledemo.dmz.camras.nl
Port: 11042
Port_Trace2Port : 11042
......@@ -19,7 +19,7 @@ logging.basicConfig(level=logging.DEBUG)
_telescope__num_instances = 0
class telescope():
def __init__(self, setmode=None, consoleHost=None, trace2portHost=None):
def __init__(self, setmode=None, consoleHost=None):
'''
Initializes a telescope instance. The mode for writing can be
'J2000' or 'AZEL'.
......@@ -37,8 +37,6 @@ class telescope():
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")
if trace2portHost is None:
trace2portHost = config.get('Trace2Port','HostName')
self.dist_az = None
self.dist_el = None
......@@ -85,8 +83,8 @@ class telescope():
self._event_traces = threading.Event()
thread_read_traces = threading.Thread(target=self._readtraces, args=(
config.get('Trace2Port', 'Hostname'),
config.getint('Trace2Port', 'Port')))
consoleHost,
config.getint('Console', 'Port_Trace2Port')))
thread_read_traces.daemon = True
thread_read_traces.start()
......
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