esrf-bliss / Lima

Library for Image Acquisition
https://lima1.rtfd.io
GNU General Public License v3.0
39 stars 71 forks source link

device naming for Lima plugin #131

Closed PhilLAL closed 2 years ago

PhilLAL commented 2 years ago

Hi, when using A/B/C for a LimaCCDs used with a Basler, we manually create devices for LimaCCDs and Basler devices.

Then, if we use plugins, other devices are created:

For example, if bla/truc/ccd.01 exists as well as bla/machin/ccd.01, then both will create bla/liveviewer/ccd.01, am I right?

Then I understand Lima assumes C will be unique among all A/B, am I right?

Since naming depends on accelerators, it is possible this renaming occurs issues? How to do this?

Thank you

laurent-claustre commented 2 years ago

H Phil, the automatic generated devices can be renamed afterward, so feel free to rename the device names using jive or from a resource file you will upload from jive. For info, in the lastest version of the package lima-tango-server 1.9.16 the CT devices are no longer created, so you can remove their definition in jive.

PhilLAL commented 2 years ago

Thanks @laurent-claustre, but devices will not have dependencies issues if I rename them how I want? They all depends only on LimaCCDs and Basler?

laurent-claustre commented 2 years ago

No, you can rename the devices as you want, only the code behind is sharing the lima python objects coming from the library. You can make a test and you will see this will work like a charm

PhilLAL commented 2 years ago

Thank you very much, again :)