Commit c41f14b9 authored by marc's avatar marc

Added telescope mode and offset, but need to check if these can be read

from telescope Class
parent e7290161
......@@ -22,7 +22,7 @@ class MetaData():
self.operator1 =''
self.operator2 =''
self.operator3 =''
self.startTime = time.strftime("%Y%m%d-%h%m%s")
self.startTime = time.strftime("%Y-%m-%d-%H:%M:%S")
'''
Tool settings
'''
......@@ -38,11 +38,14 @@ class MetaData():
self.guidingMode = 'Tracking'
self.radecSetpoint = None
self.radecActual = None
self.offset = None
'''
DT Settings
'''
self.refractionEnabled = 'False'
self.DTModelEnabled = 'False'
self.telescopeMode = None
self.telescopeOffset = None
'''
Backend Settings
......@@ -66,6 +69,8 @@ class MetaData():
('outputDir' , self.outputDirectory),
('outputFile' , self.outputFile),
('guidingMode' , self.guidingMode),
('telescopeMode' , self.telescopeMode),
('telescopeOffset' , self.telescopeOffset),
('setpointRaDEC' , self.radecSetpoint),
('actualRaDEC' , self.radecActual),
('refactionEnabled', self.refractionEnabled),
......@@ -79,8 +84,8 @@ class MetaData():
if __name__ == '__main__':
myData = MetaData()
myData.operator1 = 'Ops01'
myData.operator3 = 'Ops03'
myData.operator1 = 'Stichting CAMRAS'
myData.operator3 = 'Operator 3'
myData.refractionEnabled = True
myData.LSREnabled = True
......@@ -90,7 +95,4 @@ if __name__ == '__main__':
myMetaData = myData.getMetaData()
for data in myMetaData:
logging.info('#{:20}: {:40}'.format(data[0],str(data[1])))
'''
for k, v in myData.getMetaData().items():
logging.info('#key: {}\t value: {}'.format(k,v))
'''
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