dls-controls / aioca

Asynchronous Channel Access client for asyncio and Python using libca via ctypes
Apache License 2.0
6 stars 3 forks source link

_catools.connect does not accept "cainfo" as an argument #22

Closed rcardenes closed 2 years ago

rcardenes commented 2 years ago

The reference documentation suggest it does (like cothread.catools.connect would), but it's not the case. Not sure if this was an accident or by design.

coretl commented 2 years ago

Good catch!

This was by design, we took the opportunity to make limited but breaking changes to make the type signature more predictable (i.e. when a CAInfo object would be returned). I've updated the docs to show that cainfo(pv, wait=False) should be used instead of connect(pv, cainfo=True, wait=False.

rcardenes commented 2 years ago

Understood. Ok, if it's by design then I'll keep my current workaround (using cainfo directly when I want that).