collect filenames after waiting for all tasks (in nuDIA the run number is needed for the filenames but is only available after sending out the request, which is only possible after the stop pid is through

This commit is contained in:
2020-06-28 18:53:35 +02:00
parent d37c237095
commit 52e8ae0c57
+5 -3
View File
@@ -96,15 +96,17 @@ class ScanBackend:
def acquire_all(self, filename):
tasks = []
filenames = []
for acq in self.acquisitions:
t = acq.acquire(filename=filename, channels=self.channels, n_pulses=self.n_pulses_per_step)
tasks.append(t)
filenames.extend(t.filenames)
self.current_tasks = tasks
wait_for_all(tasks)
filenames = []
for t in tasks:
filenames.extend(t.filenames)
return filenames #TODO: returning this is weird