This commit is contained in:
23
script/HklScan.py
Normal file
23
script/HklScan.py
Normal file
@@ -0,0 +1,23 @@
|
||||
|
||||
vector = [[1.0,1.0,1.0], [1.0,1.0,1.1], [1.0,1.0,1.2], [1.0,1.0,1.4]]
|
||||
|
||||
|
||||
|
||||
def hklscan(vector, readables,latency = 0.0, **pars):
|
||||
readables=to_list(string_to_obj(readables))
|
||||
#names = [readable.name for readable in readables]
|
||||
scan = ManualScan([h, k, l], readables ,vector[0], vector[-1], [len(vector)-1] * 3, dimensions = 1)
|
||||
if not "domain_axis" in pars.keys():
|
||||
pars["domain_axis"] = "Index"
|
||||
processScanPars(scan, pars)
|
||||
scan.start()
|
||||
try:
|
||||
for pos in vector:
|
||||
hkl.write(pos)
|
||||
time.sleep(1.0)
|
||||
scan.append ([h.take(), k.take(), l.take()], [h.getPosition(), k.getPosition(), l.getPosition()], [readable.read() for readable in readables ])
|
||||
finally:
|
||||
scan.end()
|
||||
|
||||
|
||||
hklscan(vector, [sin, arr], 0.9) #, = "Index" )#, line_plots = [sin])
|
||||
Reference in New Issue
Block a user