Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
marc
metadata
Commits
c41f14b9
Commit
c41f14b9
authored
Nov 04, 2017
by
marc
Browse files
Added telescope mode and offset, but need to check if these can be read
from telescope Class
parent
e7290161
Changes
1
Hide whitespace changes
Inline
Side-by-side
__init__.py
View file @
c41f14b9
...
...
@@ -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
=
'Op
s0
3'
myData
.
operator1
=
'
Stichting CAMRAS
'
myData
.
operator3
=
'Op
erator
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))
'''
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment