Public Access
expanded features in res_test.py
This commit is contained in:
1 parent
f9fa03e312
commit
428af30c30
1 file changed
+2
@@ -15,6 +15,7 @@ def result():
|
|||||||
data["data/ts %i"%num] = ts+0
|
data["data/ts %i"%num] = ts+0
|
||||||
ts.write_to_hdf(h5, "/", f"adc_{num}", f"adc_{num}")
|
ts.write_to_hdf(h5, "/", f"adc_{num}", f"adc_{num}")
|
||||||
data["fft"] = (ts+0).fft()
|
data["fft"] = (ts+0).fft()
|
||||||
|
data["fft_autophase"] = (ts+0).fft().autophase()
|
||||||
r[num] = ts.y[0][0]
|
r[num] = ts.y[0][0]
|
||||||
if num > 4:
|
if num > 4:
|
||||||
x = r.get_xdata()
|
x = r.get_xdata()
|
||||||
@@ -32,6 +33,7 @@ def result():
|
|||||||
data["test"] = r
|
data["test"] = r
|
||||||
accu+=ts
|
accu+=ts
|
||||||
print(accu)
|
print(accu)
|
||||||
|
data["accu_fft"] = accu.fft().autophase()
|
||||||
accu.write_to_hdf(h5, "/", "name", "title")
|
accu.write_to_hdf(h5, "/", "name", "title")
|
||||||
try:
|
try:
|
||||||
h5.close()
|
h5.close()
|
||||||
|
|||||||
Reference in new issue
Block a user