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
Tammo Jan Dijkema
telescope
Commits
41cf9dc5
Commit
41cf9dc5
authored
Jun 28, 2021
by
Tammo Jan Dijkema
Browse files
Imrpove check for mercurius
parent
55bdbec8
Changes
1
Hide whitespace changes
Inline
Side-by-side
telescope.py
View file @
41cf9dc5
...
...
@@ -28,17 +28,19 @@ class Telescope:
global
_telescope__num_instances
self
.
logger
=
logging
.
getLogger
(
__name__
)
if
setmode
not
in
(
'J2000'
,
'AZEL'
,
None
):
raise
ValueError
(
"Mode must be None, 'J2000' or 'AZEL', not "
+
setmode
)
self
.
setmode
=
setmode
if
consoleHost
is
None
:
consoleHost
=
config
.
get
(
'Console'
,
'HostName'
)
if
consoleHost
==
'console'
:
if
setmode
is
not
None
and
socket
.
gethostname
()
==
"mercurius"
:
self
.
logger
.
warning
(
"You are
us
ing the actual console, not a demo!"
)
if
consoleHost
==
'console'
and
setmode
is
not
None
:
if
socket
.
gethostname
()
==
"mercurius"
:
self
.
logger
.
warning
(
"You are
command
ing the actual console, not a demo!"
)
else
:
raise
ValueError
(
"
Talking to
the actual console can only be done from mercurius"
)
raise
ValueError
(
"
Commanding
the actual console can only be done from mercurius"
)
self
.
dist_az
=
None
self
.
dist_el
=
None
...
...
Write
Preview
Markdown
is supported
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