diff --git a/acquisition/scan.py b/acquisition/scan.py index 23ddbe6..c6dd45c 100755 --- a/acquisition/scan.py +++ b/acquisition/scan.py @@ -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() diff --git a/devices_general/detectors.py b/devices_general/detectors.py index 80edc9d..91d007a 100755 --- a/devices_general/detectors.py +++ b/devices_general/detectors.py @@ -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!')