unified Plot*.set(), always accept times and values
This commit is contained in:
6
actor.py
6
actor.py
@@ -7,8 +7,8 @@ from sources import Camera, Source
|
||||
def update_all(plt, cache):
|
||||
plt.set(*cache.xy)
|
||||
|
||||
def update_latest(plt, cache):
|
||||
plt.set(cache.latest)
|
||||
#def update_latest(plt, cache):
|
||||
# plt.set(cache.latest)
|
||||
|
||||
|
||||
def decide_src_plt_cache_update(pvname):
|
||||
@@ -19,7 +19,7 @@ def decide_src_plt_cache_update(pvname):
|
||||
src = Camera(pvname)
|
||||
plt = Plot2D
|
||||
cache_size = 1
|
||||
update = update_latest
|
||||
update = update_all
|
||||
if not src.is_connected:
|
||||
raise RuntimeError(f"{pvname} is not connected")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user