diff --git a/piker/fsp/_engine.py b/piker/fsp/_engine.py index 883f5853..c6e9299d 100644 --- a/piker/fsp/_engine.py +++ b/piker/fsp/_engine.py @@ -90,7 +90,7 @@ async def fsp_compute( func_name: str, func: Callable, - attach_stream: bool = False, + attach_stream: bool = True, task_status: TaskStatus[None] = trio.TASK_STATUS_IGNORED, ) -> None: diff --git a/piker/ui/_display.py b/piker/ui/_display.py index ab85e761..7859d23b 100644 --- a/piker/ui/_display.py +++ b/piker/ui/_display.py @@ -427,7 +427,7 @@ async def run_fsp( ) async with ( - portal.open_stream_from( + portal.open_context( # chaining entrypoint fsp.cascade, @@ -437,21 +437,17 @@ async def run_fsp( src_shm_token=src_shm.token, dst_shm_token=conf['shm'].token, symbol=sym, - fsp_func_name=fsp_func_name, + func_name=fsp_func_name, loglevel=loglevel, - ) as stream, - + ) as (ctx, last_index), + ctx.open_stream() as stream, open_sidepane( linkedsplits, display_name, ) as sidepane, ): - # receive last index for processed historical - # data-array as first msg - _ = await stream.receive() - shm = conf['shm'] if conf.get('overlay'):