Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
D
DISCOS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
INAF
DISCOS
Commits
e1049f10
Commit
e1049f10
authored
4 years ago
by
Giuseppe Carboni
Browse files
Options
Downloads
Patches
Plain Diff
Now the derotator does not cause the track command to fail, issue #328
parent
7c415452
No related branches found
No related tags found
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py
+6
-2
6 additions, 2 deletions
...rvers/PyDewarPositioner/src/DewarPositioner/positioner.py
with
6 additions
and
2 deletions
Common/Servers/PyDewarPositioner/src/DewarPositioner/positioner.py
+
6
−
2
View file @
e1049f10
...
@@ -155,7 +155,9 @@ class Positioner(object):
...
@@ -155,7 +155,9 @@ class Positioner(object):
elif
str
(
axis
)
==
'
MNG_BEAMPARK
'
:
elif
str
(
axis
)
==
'
MNG_BEAMPARK
'
:
return
(
True
,
stime
)
return
(
True
,
stime
)
elif
self
.
conf
.
getAttribute
(
'
DynamicUpdatingAllowed
'
)
!=
'
true
'
:
elif
self
.
conf
.
getAttribute
(
'
DynamicUpdatingAllowed
'
)
!=
'
true
'
:
raise
NotAllowedError
(
'
dynamic updating not allowed
'
)
# FIXED configuration, should return ready even if the derotator
# will not actually move
return
(
True
,
stime
)
elif
not
self
.
siteInfo
:
elif
not
self
.
siteInfo
:
raise
NotAllowedError
(
'
no site information available
'
)
raise
NotAllowedError
(
'
no site information available
'
)
elif
str
(
sector
)
not
in
sectors
:
elif
str
(
sector
)
not
in
sectors
:
...
@@ -232,7 +234,9 @@ class Positioner(object):
...
@@ -232,7 +234,9 @@ class Positioner(object):
elif
str
(
axis
)
==
'
MNG_BEAMPARK
'
:
elif
str
(
axis
)
==
'
MNG_BEAMPARK
'
:
pass
# Do nothing
pass
# Do nothing
elif
self
.
conf
.
getAttribute
(
'
DynamicUpdatingAllowed
'
)
!=
'
true
'
:
elif
self
.
conf
.
getAttribute
(
'
DynamicUpdatingAllowed
'
)
!=
'
true
'
:
logger
.
logNotice
(
'
dynamic updating not allowed
'
)
# This log is pretty much useless
# logger.logNotice('dynamic updating not allowed')
pass
elif
not
self
.
siteInfo
:
elif
not
self
.
siteInfo
:
raise
NotAllowedError
(
'
no site information available
'
)
raise
NotAllowedError
(
'
no site information available
'
)
elif
not
self
.
source
:
elif
not
self
.
source
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment