python-microscope / microscope

Python library for control of microscope devices, supporting hardware triggers and distribution of devices over the network for performance and flexibility.
https://www.python-microscope.org
GNU General Public License v3.0
66 stars 39 forks source link

Client import of properties from the proxy are integers instead of properties #210

Open gjover opened 3 years ago

gjover commented 3 years ago

When a client is created, connecting to a microscope device, the properties passed from the proxy are integer attributes instead of properties. This makes that any change on these attributes do not affect the proxy property nor the other way around.

carandraug commented 3 years ago

You are right and yours seems the right fix. However, why are you using this?

Does anyone know why we even have this module?

microscope.clients.Client can be replaced with Pyro4.Proxy

microscope.clients.DataClient I'm not sure what's the use case here.

gjover commented 3 years ago

It is convenient to test the DS from python console. I was wondering if it could be used for abstracting the communication in other packages as the microscopeDevice in cockpit. But may be this class is not used anyhow.