Skip to content

Commit

Permalink
Fixed bug in ExperimentConfiguration when handling extra post-process…
Browse files Browse the repository at this point in the history
…ors in ACQ.
  • Loading branch information
PP501 committed Aug 7, 2024
1 parent 9454703 commit e686969
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sqdtoolz/ExperimentConfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,21 @@ def _settle_currently_used_processors(self, conf=None):
cur_proc = self._lab.PROC(cur_dict['Processor'])
if cur_proc != None:
self._proc_configs += [cur_proc]
if 'ExProcessors' in cur_dict:
for proc_name in cur_dict['ExProcessors']:
cur_proc = self._lab.PROC(proc_name)
if cur_proc != None:
self._proc_configs += [cur_proc]
else:
if self._hal_ACQ and hasattr(self._hal_ACQ, 'data_processor'):
cur_proc = self._hal_ACQ.data_processor
if cur_proc:
self._proc_configs = [cur_proc]
if hasattr(self._hal_ACQ, '_post_processors'): #TODO: Perhaps refactor to have ACQ return all used processors?
for proc_name in self._hal_ACQ._post_processors:
cur_proc = self._lab.PROC(proc_name)
if cur_proc != None:
self._proc_configs += [cur_proc]

def get_config(self):
return self._init_config
Expand Down

0 comments on commit e686969

Please sign in to comment.