Skip to content

Commit

Permalink
Merge pull request #535 from ufo-kit/fix-tango-import
Browse files Browse the repository at this point in the history
fixes imports of tango asyncio executor
  • Loading branch information
MarcusZuber committed Apr 18, 2024
2 parents 83a4c5e + 556749b commit 95eb1a0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion concert/networking/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@ def get_tango_device(uri, peer=None, timeout=10 * q.s):
if IPython.version_info >= (8, 0):
from IPython.core.async_helpers import get_asyncio_loop
ipython_loop = get_asyncio_loop()
executor = tango.asyncio_executor.AsyncioExecutor(loop=ipython_loop)
from tango import asyncio_executor
executor = asyncio_executor.AsyncioExecutor(loop=ipython_loop)

device = tango.DeviceProxy(
uri, green_mode=tango.GreenMode.Asyncio, asyncio_executor=executor
Expand Down

0 comments on commit 95eb1a0

Please sign in to comment.