From 7d2364a6df96f740c6ac123c3b75813b9f0117c3 Mon Sep 17 00:00:00 2001 From: stedif <stefano.difrischia@inaf.it> Date: Wed, 14 Jul 2021 12:09:54 +0200 Subject: [PATCH] L2SS-318: replace RandomData with Pythonic random_data --- CDB/LOFAR_ConfigDb.json | 8 ++++---- devices/test/devices/random_data.py | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/CDB/LOFAR_ConfigDb.json b/CDB/LOFAR_ConfigDb.json index c37b09b85..284aaf0d8 100644 --- a/CDB/LOFAR_ConfigDb.json +++ b/CDB/LOFAR_ConfigDb.json @@ -426,10 +426,10 @@ } } }, - "RandomData": { + "random_data": { "LTS": { - "RandomData": { - "LTS/RandomData/1": { + "random_data": { + "LTS/random_data/1": { "properties": { "polled_attr": [ "rnd1", @@ -479,7 +479,7 @@ ] } }, - "LTS/RandomData/2": { + "LTS/random_data/2": { "properties": { "polled_attr": [ "rnd1", diff --git a/devices/test/devices/random_data.py b/devices/test/devices/random_data.py index 3ebff8615..a22d8f6cc 100644 --- a/devices/test/devices/random_data.py +++ b/devices/test/devices/random_data.py @@ -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() -- GitLab