From f57bf7a0e169f5656f90a928fc2050352da71f98 Mon Sep 17 00:00:00 2001 From: Jan David Mol <mol@astron.nl> Date: Wed, 6 Oct 2021 19:47:23 +0200 Subject: [PATCH] L2SS-412: Fix statistics devices after merge error and wrong order of parameters --- devices/clients/statistics_client.py | 2 +- devices/devices/sdp/statistics.py | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/devices/clients/statistics_client.py b/devices/clients/statistics_client.py index 5a1d01e03..3fd470fbf 100644 --- a/devices/clients/statistics_client.py +++ b/devices/clients/statistics_client.py @@ -17,7 +17,7 @@ class StatisticsClient(AsyncCommClient): and provides a CommClient interface to expose points to a Device Server. """ - def __init__(self, collector, udp_options, tcp_options, fault_func, queuesize=1024, event_loop=None): + def __init__(self, collector, udp_options, tcp_options, fault_func, event_loop=None, queuesize=1024): """ Create the statistics client and connect() to it and get the object node. diff --git a/devices/devices/sdp/statistics.py b/devices/devices/sdp/statistics.py index a5303a7b5..af1cf0201 100644 --- a/devices/devices/sdp/statistics.py +++ b/devices/devices/sdp/statistics.py @@ -146,11 +146,6 @@ class Statistics(opcua_device, metaclass=ABCMeta): await self.statistics_client.start() - # tie attributes to client - for i in self.attr_list(): - if i.comms_id == StatisticsClient: - i.set_comm_client(self.statistics_client) - # -------- # Commands # -------- -- GitLab