Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
LOFAR Station Client
Manage
Activity
Members
Labels
Plan
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
LOFAR2.0
LOFAR Station Client
Commits
a3801b5b
Commit
a3801b5b
authored
2 years ago
by
Taya Snijder
Browse files
Options
Downloads
Plain Diff
Merge branch '
L2SS-1128
_integration_fix' into 'main'
L2SS-1128
fixed observation device bug Closes
L2SS-1128
See merge request
!28
parents
d332d1f9
65822427
No related branches found
No related tags found
1 merge request
!28
L2SS-1128 fixed observation device bug
Pipeline
#41383
failed
2 years ago
Stage: image
Stage: lint
Stage: test
Stage: package
Stage: integration
Stage: publish
Changes
3
Pipelines
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
README.md
+1
-0
1 addition, 0 deletions
README.md
VERSION
+1
-1
1 addition, 1 deletion
VERSION
lofar_station_client/observation/station_futures.py
+3
-9
3 additions, 9 deletions
lofar_station_client/observation/station_futures.py
with
5 additions
and
10 deletions
README.md
+
1
−
0
View file @
a3801b5b
...
@@ -105,6 +105,7 @@ tox -e debug tests.requests.test_prometheus
...
@@ -105,6 +105,7 @@ tox -e debug tests.requests.test_prometheus
```
```
## Releasenotes
## Releasenotes
-
0.11.1 - Bug fixes in observation code
-
0.11.
-
0.11.
*
Added
`MultiStationObservation`
class for a pythonic interface with observations across multiple stations.
*
Added
`MultiStationObservation`
class for a pythonic interface with observations across multiple stations.
*
Added
`StationObservation`
class for pythonic interface with observations
*
Added
`StationObservation`
class for pythonic interface with observations
...
...
This diff is collapsed.
Click to expand it.
VERSION
+
1
−
1
View file @
a3801b5b
0.11.
0
0.11.
1
This diff is collapsed.
Click to expand it.
lofar_station_client/observation/station_futures.py
+
3
−
9
View file @
a3801b5b
...
@@ -33,24 +33,18 @@ class StationFutures:
...
@@ -33,24 +33,18 @@ class StationFutures:
self
.
_json_specification
=
dumps
(
specification
)
self
.
_json_specification
=
dumps
(
specification
)
try
:
try
:
# connects to the tangoDb and get the prox
ies
# connects to the tangoDb and get the prox
y
self
.
_control_proxy
=
DeviceProxy
(
self
.
_control_proxy
=
DeviceProxy
(
f
"
tango://
{
host
}
/STAT/ObservationControl/1
"
f
"
tango://
{
host
}
/STAT/ObservationControl/1
"
)
)
self
.
_observation_proxy
=
DeviceProxy
(
# gives an exception when it fails to ping the proxy
f
"
tango://
{
host
}
/STAT/observation/
{
self
.
_id
}
"
)
# gives an exception when it fails to ping the proxies
_
=
self
.
_control_proxy
.
ping
()
_
=
self
.
_control_proxy
.
ping
()
_
=
self
.
_observation_proxy
.
ping
()
# set station to green mode
# set station to green mode
self
.
_control_proxy
.
set_green_mode
(
GreenMode
.
Futures
)
self
.
_control_proxy
.
set_green_mode
(
GreenMode
.
Futures
)
self
.
_observation_proxy
.
set_green_mode
(
GreenMode
.
Futures
)
except
DevFailed
as
e
:
except
DevFailed
as
e
:
self
.
_control_proxy
=
None
self
.
_control_proxy
=
None
self
.
_observation_proxy
=
None
logger
.
warning
(
logger
.
warning
(
"
Failed to connect to device on host %s: %s: %s
"
,
"
Failed to connect to device on host %s: %s: %s
"
,
...
@@ -106,4 +100,4 @@ class StationFutures:
...
@@ -106,4 +100,4 @@ class StationFutures:
@property
@property
def
observation_proxy
(
self
)
->
DeviceProxy
:
def
observation_proxy
(
self
)
->
DeviceProxy
:
"""
get the observation proxy of this station
"""
"""
get the observation proxy of this station
"""
return
self
.
_observation_proxy
return
DeviceProxy
(
f
"
tango://
{
self
.
host
}
/STAT/observation/
{
self
.
_id
}
"
)
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