Correlation Stream

This commit is contained in:
root
2021-02-24 10:49:05 +01:00
parent 9547784e17
commit 5237b9ddc3
64 changed files with 458 additions and 185 deletions

View File

@@ -58,8 +58,8 @@ X2_averager.monitored = True # not blocking, will return last n
#Record callback: uptate of output plot
def after_sample(record, scan):
global plt,i
X1_mean, X1_stdev = record.values[0].mean, record.values[0].stdev
X2_mean, X2_stdev = record.values[1].mean, record.values[1].stdev
X1_mean, X1_stdev = record[0].mean, record[0].stdev
X2_mean, X2_stdev = record[1].mean, record[1].stdev
plt.getSeries(i).appendData(X1_mean, X2_mean, X1_stdev, X2_stdev)
#The scan loop

View File

@@ -71,10 +71,10 @@ if not dry_run:
def after_sample(record, scan):
x = record.values[0]
y = record.values[1]
stdev_x = record.values[2]
stdev_y = record.values[3]
x = record[0]
y = record[1]
stdev_x = record[2]
stdev_y = record[3]
if source in ["camtool", "server"]:
#x, y, stdev_x, stdev_y = x.mean, y.mean, stdev_x.mean, stdev_y.mean
x, y, stdev_x, stdev_y = x.mean, y.mean, x.stdev, y.stdev

View File

@@ -73,10 +73,10 @@ if not dry_run:
def after_sample(record, scan):
x = record.values[0]
y = record.values[1]
stdev_x = record.values[2]
stdev_y = record.values[3]
x = record[0]
y = record[1]
stdev_x = record[2]
stdev_y = record[3]
if source in ["camtool", "server"]:
#x, y, stdev_x, stdev_y = x.mean, y.mean, stdev_x.mean, stdev_y.mean
x, y, stdev_x, stdev_y = x.mean, y.mean, x.stdev, y.stdev