Closedown
This commit is contained in:
@@ -4,12 +4,15 @@ Multi-peak search and gaussian fitting
|
||||
|
||||
from mathutils import estimate_peak_indexes, fit_gaussians, create_fit_point_list
|
||||
|
||||
start = 0
|
||||
start = 1
|
||||
end = 30
|
||||
step_size = 0.2
|
||||
|
||||
result= lscan(sout,sinp,start,end,[step_size,],0.05)
|
||||
|
||||
path = get_current_data_group()
|
||||
set_attribute(path, "ApertureX", apertureX.read())
|
||||
|
||||
readable = result.getReadable(0)
|
||||
positions = result.getPositions(0)
|
||||
|
||||
@@ -23,6 +26,11 @@ print "Peak y: " + str(map(lambda x:readable[x], peaks))
|
||||
|
||||
log("Highest peak index = " +str(peaks[0]))
|
||||
|
||||
#Manually adding a dataset
|
||||
data = [ [1,2,3,4,5], [2,3,4,5,6], [3,4,5,6,7]]
|
||||
path="group/data2"
|
||||
save_dataset(path, data)
|
||||
|
||||
gaussians = fit_gaussians(readable, positions, peaks)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user