From 85fd0a7a3060b160910a7eedefadc008710a16c7 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Mon, 6 Sep 2021 13:46:07 -0400 Subject: [PATCH] Avoid "n" as name since it conflicts with pdb --- piker/ui/_chart.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/piker/ui/_chart.py b/piker/ui/_chart.py index f8028d9b..2ae846c8 100644 --- a/piker/ui/_chart.py +++ b/piker/ui/_chart.py @@ -1708,7 +1708,6 @@ async def display_symbol_data( tick_throttle=_clear_throttle_rate, ) as feed, - trio.open_nursery() as n, ): ohlcv: ShmArray = feed.shm @@ -1800,11 +1799,11 @@ async def display_symbol_data( async with ( - trio.open_nursery() as n, + trio.open_nursery() as ln, ): # load initial fsp chain (otherwise known as "indicators") - n.start_soon( + ln.start_soon( spawn_fsps, linkedsplits, fsp_conf, @@ -1816,7 +1815,7 @@ async def display_symbol_data( ) # start graphics update loop(s)after receiving first live quote - n.start_soon( + ln.start_soon( chart_from_quotes, chart, feed.stream, @@ -1824,7 +1823,7 @@ async def display_symbol_data( wap_in_history, ) - n.start_soon( + ln.start_soon( check_for_new_bars, feed, ohlcv,