diff --git a/devices/clients/test_client.py b/devices/clients/test_client.py index d7e1300c7dfd18bf89f2b68b48d74ca1bb291739..f3663be5a57f79aac725a0bf4fd83f10ceacfc38 100644 --- a/devices/clients/test_client.py +++ b/devices/clients/test_client.py @@ -1,6 +1,9 @@ from src.comms_client import * +<<<<<<< HEAD import os +======= +>>>>>>> 99e3d08... fixed 'illegal state transition' bug and off->initialise state bug # <class 'numpy.bool_'> @@ -29,7 +32,11 @@ class example_client(CommClient): """ this function provides a location for the code neccecary to connect to the client """ +<<<<<<< HEAD self.streams.debug_stream(os.path.dirname(os.path.abspath(__file__))) +======= + +>>>>>>> 99e3d08... fixed 'illegal state transition' bug and off->initialise state bug self.streams.debug_stream("the example client doesn't actually connect to anything silly") self.connected = True # set connected to true diff --git a/devices/src/attribute_wrapper.py b/devices/src/attribute_wrapper.py index 03bd9d5e5148b8539e339d57328d2f53c6262d70..8b62378b2dd09e79919fb39e4294298e93b89cff 100644 --- a/devices/src/attribute_wrapper.py +++ b/devices/src/attribute_wrapper.py @@ -11,6 +11,7 @@ logger = logging.getLogger() class attribute_wrapper(attribute): """ +<<<<<<< HEAD Wraps all the attributes in a wrapper class to manage most of the redundant code behind the scenes """ @@ -24,6 +25,16 @@ class attribute_wrapper(attribute): dims: dimensions of the init_value: value """ +======= + Wraps all the attributes in a wrapper class to manage most of the redundant code behind the scenes + """ + + def __init__(self, comms_annotation=None, datatype=None, dims=(1,), access=AttrWriteType.READ, init_value=None, **kwargs): + """ + wraps around the tango Attribute class. Provides an easier interface for 1d or 2d arrays. Also provides a way to abstract + managing the communications interface. + """ +>>>>>>> 99e3d08... fixed 'illegal state transition' bug and off->initialise state bug # ensure the type is a numpy array if "numpy" not in str(datatype) and datatype != str: