Closed rgeneaux closed 11 months ago
They are having it in the dict but never really used it so how come it causes a bug.I don't quite understand.
Sorry actually I got it...
We just have to actually address an ID to each device (integer). And create a dict with these Id and the corresponding dll. Finally just a list where the index would be the I'd would work
Hi,
This line: https://github.com/PyMoDAQ/pymodaq_plugins_physik_instrumente/blob/47fb69ce17341cd95d53ed756d59435411665b98/src/pymodaq_plugins_physik_instrumente/daq_move_plugins/daq_move_PI.py#L180
causes bugs because several actuators can share the same DLL (which is the value of the
self.settings.child('devices')
dictionary). It's quite bad on my lab computer, for which the dictionary is as follows:(yes the PI DLL is not very good at filtering what is actually from PI, there's only one here... I guess that's another topic)
so using the find_keys_from_val method won't work, we need the actual selected key from the dictionary. I couldn't find an easy way to get that, other than perhaps findign the widget and getting its currentText, but that doesn't feel right!