Commit 4ab96dbf authored by Tammo Jan Dijkema's avatar Tammo Jan Dijkema
Browse files

Make trace2port host configurable through constructor

parent 28630cf1
......@@ -17,7 +17,7 @@ config.readfp(open(os.path.join(os.path.dirname(__file__), 'telescope.ini')))
logging.basicConfig(level=logging.DEBUG)
class telescope():
def __init__(self, setmode=None, consoleHost=None):
def __init__(self, setmode=None, consoleHost=None, trace2portHost=None):
'''
Initializes a telescope instance. The mode for writing can be
'J2000' or 'AZEL'.
......@@ -33,6 +33,8 @@ 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
......
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