Skip to content

Commit eb36be0

Browse files
committed
use oaveragin_mode.average instead of relying on import of AveragingMode
1 parent d778356 commit eb36be0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/qibolab/_core/instruments/qblox/cluster.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
from qibolab._core.components import AcquisitionChannel, Configs, DcConfig, IqChannel
1414
from qibolab._core.execution_parameters import (
1515
AcquisitionType,
16-
AveragingMode,
1716
ExecutionParameters,
1817
)
1918
from qibolab._core.identifier import ChannelId, Result
@@ -150,7 +149,7 @@ def play(
150149
results = {}
151150
log = Logger(configs)
152151

153-
if options.averaging_mode == AveragingMode.SINGLESHOT:
152+
if options.averaging_mode.average:
154153
batch_memory = 0
155154
acquisitions = 0
156155
batched_list: list[list[PulseSequence]] = [[]]

0 commit comments

Comments
 (0)