Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
T
tango
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Jira issues
Open Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LOFAR2.0
tango
Commits
7d2364a6
Commit
7d2364a6
authored
3 years ago
by
Stefano Di Frischia
Browse files
Options
Downloads
Patches
Plain Diff
L2SS-318
: replace RandomData with Pythonic random_data
parent
995d43e6
No related branches found
No related tags found
1 merge request
!86
L2SS-318: replace RandomData with Pythonic random_data
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
CDB/LOFAR_ConfigDb.json
+4
-4
4 additions, 4 deletions
CDB/LOFAR_ConfigDb.json
devices/test/devices/random_data.py
+3
-3
3 additions, 3 deletions
devices/test/devices/random_data.py
with
7 additions
and
7 deletions
CDB/LOFAR_ConfigDb.json
+
4
−
4
View file @
7d2364a6
...
...
@@ -426,10 +426,10 @@
}
}
},
"
R
andom
D
ata"
:
{
"
r
andom
_d
ata"
:
{
"LTS"
:
{
"
R
andom
D
ata"
:
{
"LTS/
R
andom
D
ata/1"
:
{
"
r
andom
_d
ata"
:
{
"LTS/
r
andom
_d
ata/1"
:
{
"properties"
:
{
"polled_attr"
:
[
"rnd1"
,
...
...
@@ -479,7 +479,7 @@
]
}
},
"LTS/
R
andom
D
ata/2"
:
{
"LTS/
r
andom
_d
ata/2"
:
{
"properties"
:
{
"polled_attr"
:
[
"rnd1"
,
...
...
This diff is collapsed.
Click to expand it.
devices/test/devices/random_data.py
+
3
−
3
View file @
7d2364a6
...
...
@@ -19,9 +19,9 @@ from tango import DevState
from
tango.server
import
run
,
Device
,
attribute
,
command
from
numpy
import
random
__all__
=
[
"
RandomData
"
,
"
main
"
]
__all__
=
[
"
Random
_
Data
"
,
"
main
"
]
class
RandomData
(
Device
):
class
Random
_
Data
(
Device
):
"""
Random data monitor point device
"""
...
...
@@ -467,7 +467,7 @@ def main(args = None, **kwargs):
"""
Main function of the RandomData module.
"""
return
run
((
RandomData
,),
args
=
args
,
**
kwargs
)
return
run
((
Random
_
Data
,),
args
=
args
,
**
kwargs
)
if
__name__
==
'
__main__
'
:
main
()
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