From 4445c4639219059f6f149bc521d41186f477a267 Mon Sep 17 00:00:00 2001
From: thijs snijder <snijder@astron.nl>
Date: Fri, 7 May 2021 14:48:31 +0200
Subject: [PATCH] restored data handling fucntion

---
 devices/clients/ini_client.py | 14 +++++++-------
 1 file changed, 7 insertions(+), 7 deletions(-)

diff --git a/devices/clients/ini_client.py b/devices/clients/ini_client.py
index ff94ab9da..c099dbc8d 100644
--- a/devices/clients/ini_client.py
+++ b/devices/clients/ini_client.py
@@ -32,9 +32,8 @@ import os
 
 class ini_client(CommClient):
     """
-    This class provides an example implementation of a comms_client.
-    
-    During initialisation, it creates a correctly shaped zero-filled value. On read, that value is returned, and on write it is modified.
+    this class provides an example implementation of a comms_client.
+    Durirng initialisation it creates a correctly shaped zero filled value. on read that value is returned and on write its modified.
     """
 
     def start(self):
@@ -174,8 +173,8 @@ def data_handler(string, dtype):
 
     elif dtype is numpy.str_:
         for i in string.split(","):
-            value = numpy.str_(i)
-            value.append(value)
+            val = numpy.str_(i)
+            value.append(val)
 
         value = numpy.array(value)
 
@@ -183,8 +182,9 @@ def data_handler(string, dtype):
         # regular case, go through the separator
         for i in string.split(","):
             i = i.replace(" ", "")
-            value = dtype(i)
-            value.append(value)
+            val = dtype(i)
+            value.append(val)
+
 
         # convert values from buildin type to numpy type
         value = dtype(value)
-- 
GitLab