From de970755d739e1c9c407517557e295e66af55ee8 Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 15 Jun 2022 08:57:23 -0400 Subject: [PATCH 1/3] Flip back to original daemon port --- piker/_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/piker/_daemon.py b/piker/_daemon.py index e732a15d..82dc848a 100644 --- a/piker/_daemon.py +++ b/piker/_daemon.py @@ -35,7 +35,7 @@ log = get_logger(__name__) _root_dname = 'pikerd' -_registry_addr = ('127.0.0.1', 1616) +_registry_addr = ('127.0.0.1', 6116) _tractor_kwargs: dict[str, Any] = { # use a different registry addr then tractor's default 'arbiter_addr': _registry_addr From ba43b54175a06f62195bed073db90a0849b9c6fe Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Wed, 15 Jun 2022 08:58:01 -0400 Subject: [PATCH 2/3] Handle edge case for extreme zoom out --- piker/ui/_flows.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/piker/ui/_flows.py b/piker/ui/_flows.py index 01e7159b..5f92b429 100644 --- a/piker/ui/_flows.py +++ b/piker/ui/_flows.py @@ -750,8 +750,13 @@ class Flow(msgspec.Struct): # , frozen=True): y = y[-uppx:] ymn, ymx = y.min(), y.max() # print(f'drawing uppx={uppx} mxmn line: {ymn}, {ymx}') + try: + iuppx = x[-uppx] + except IndexError: + iuppx = x + dsg._last_line = QLineF( - x[-uppx], ymn, + iuppx, ymn, x[-1], ymx, ) # print(f'updating DS curve {self.name}') From 958f53d8e93e2551d10c8f5326f757047b43eace Mon Sep 17 00:00:00 2001 From: Tyler Goodlet Date: Thu, 16 Jun 2022 10:53:22 -0400 Subject: [PATCH 3/3] Lower re-syncing log msgs to debug level --- piker/fsp/_engine.py | 2 +- piker/ui/_fsp.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/piker/fsp/_engine.py b/piker/fsp/_engine.py index cf45c40e..49fe3322 100644 --- a/piker/fsp/_engine.py +++ b/piker/fsp/_engine.py @@ -361,7 +361,7 @@ async def cascade( ) -> tuple[TaskTracker, int]: # TODO: adopt an incremental update engine/approach # where possible here eventually! - log.warning(f're-syncing fsp {func_name} to source') + log.debug(f're-syncing fsp {func_name} to source') tracker.cs.cancel() await tracker.complete.wait() tracker, index = await n.start(fsp_target) diff --git a/piker/ui/_fsp.py b/piker/ui/_fsp.py index af03a9c6..80bdf8d2 100644 --- a/piker/ui/_fsp.py +++ b/piker/ui/_fsp.py @@ -440,7 +440,7 @@ class FspAdmin: # if the chart isn't hidden try to update # the data on screen. if not self.linked.isHidden(): - log.info(f'Re-syncing graphics for fsp: {ns_path}') + log.debug(f'Re-syncing graphics for fsp: {ns_path}') self.linked.graphics_cycle( trigger_all=True, prepend_update_index=info['first'],