dls-controls / aioca

Asynchronous Channel Access client for asyncio and Python using libca via ctypes

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

rcardenes opened this issue · comments

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.

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.

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