diff --git a/devices/clients/ini_client.py b/devices/clients/ini_client.py index ff94ab9daeeb3472efe5b93b6d5c7e9274ba2307..c099dbc8dbe731700f7b223878c2a2e25e68a60e 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)