Skip to content

Commit

Permalink
Merge pull request #339 from pikers/uppx_slice_fix
Browse files Browse the repository at this point in the history
Uppx slice fix
  • Loading branch information
goodboy authored Jun 16, 2022
2 parents 7ddebf6 + 958f53d commit b87aa30
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 4 deletions.
2 changes: 1 addition & 1 deletion piker/_daemon.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

_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
Expand Down
2 changes: 1 addition & 1 deletion piker/fsp/_engine.py
Original file line number Diff line number Diff line change
Expand Up @@ -361,7 +361,7 @@ async def resync(
) -> 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)
Expand Down
7 changes: 6 additions & 1 deletion piker/ui/_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -750,8 +750,13 @@ def draw_last(
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}')
Expand Down
2 changes: 1 addition & 1 deletion piker/ui/_fsp.py
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,7 @@ async def open_chain(
# 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'],
Expand Down

0 comments on commit b87aa30

Please sign in to comment.