This commit is contained in:
2018-04-17 12:05:48 +02:00
parent 14edc0e745
commit 58a1260003
428 changed files with 41350 additions and 477 deletions

23
script/HklScan.py Normal file
View 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])