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
dtObsGUI
Commits
01483c63
Commit
01483c63
authored
Feb 10, 2019
by
marc
Browse files
Take out host control from DTObs. Changed to Telescope class i.s.o.
telescope.
parent
6e7719e0
Pipeline
#13
canceled with stages
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
DTObs.py
View file @
01483c63
...
...
@@ -18,7 +18,7 @@ from ui.dtobswindow import Ui_mainWindow
from
astropy
import
units
as
u
from
astropy.coordinates
import
SkyCoord
from
telescope.telescope
import
t
elescope
from
telescope.telescope
import
T
elescope
from
measurements
import
Measurements
from
metadata
import
MetaData
from
backend
import
Backend
...
...
@@ -92,17 +92,10 @@ class DTObservationProgram(Ui_mainWindow):
logger
.
info
(
'Initialization of DTObsGUI'
)
self
.
demo
=
config
.
getboolean
(
'TestConfig'
,
'demo'
)
consoleHost
=
config
.
get
(
'Console'
,
'HostName'
)
if
consoleHost
==
'console'
:
if
socket
.
gethostname
()
==
"mercurius"
:
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"
)
logger
.
debug
(
'Demo status is: {}'
.
format
(
self
.
demo
))
if
not
self
.
demo
:
self
.
myDT
=
t
elescope
(
set
m
ode
=
'J2000'
,
consoleHost
=
consoleHost
)
self
.
myDT
=
T
elescope
(
set
M
ode
=
'J2000'
)
'''
telescopeMode and telescopeOffset required for meta data
'''
...
...
dtobsgui.ini
View file @
01483c63
...
...
@@ -3,8 +3,4 @@ LogLevel: INFO
[TestConfig]
demo:
False
#demo: True
[Console]
HostName:
consoledemo.dmz.camras.nl
#HostName: console
#demo:
True
\ No newline at end of file
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