scan
This commit is contained in:
+2
-2
@@ -38,7 +38,7 @@ class ScanSimple:
|
||||
return False
|
||||
values_step = self.values_todo[0]
|
||||
if verbose:
|
||||
print('Starting scan step %d of %d'%(self.nextStep,len(self.values_todo)+len(self.values_done))
|
||||
print('Starting scan step %d of %d'%(self.nextStep+1,len(self.values_todo)+len(self.values_done)))
|
||||
ms = []
|
||||
fina = self.get_filename(self.nextStep)
|
||||
for adj,tv in zip(self.adjustables,values_step):
|
||||
@@ -54,7 +54,7 @@ class ScanSimple:
|
||||
acs = []
|
||||
for ctr in self.counterCallers:
|
||||
acq = ctr.acquire(file_name=fina,Npulses=self.pulses_per_step)
|
||||
filenames.append(acq.file_names)
|
||||
filenames.extend(acq.file_names)
|
||||
acs.append(acq)
|
||||
for ta in acs:
|
||||
ta.wait()
|
||||
|
||||
@@ -13,8 +13,8 @@ from threading import Thread
|
||||
|
||||
try:
|
||||
import sys
|
||||
sys.path.append('/sf/bernina/config/src/python/detector_integration_api')
|
||||
sys.path.append('/sf/bernina/config/src/python/jungfrau_utils')
|
||||
sys.path.insert(0,'/sf/bernina/config/src/python/detector_integration_api')
|
||||
sys.path.insert(0,'/sf/bernina/config/src/python/jungfrau_utils')
|
||||
from detector_integration_api import DetectorIntegrationClient
|
||||
except:
|
||||
print('NB: detector integration could not be imported!')
|
||||
|
||||
Reference in New Issue
Block a user