From 59597a94ba24c34f7806f078ea8d950e9a562143 Mon Sep 17 00:00:00 2001 From: Serwan Asaad Date: Fri, 16 Feb 2024 19:49:28 +0100 Subject: [PATCH] Remove try/except import error --- quam/components/channels.py | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/quam/components/channels.py b/quam/components/channels.py index 1888c95f..5075d616 100644 --- a/quam/components/channels.py +++ b/quam/components/channels.py @@ -7,11 +7,9 @@ from quam.utils import string_reference as str_ref -try: - from qm.qua import align, amp, play, wait, measure, dual_demod, declare, fixed - from qm.qua._type_hinting import * -except ImportError: - print("Warning: qm.qua package not found, pulses cannot be played from QuAM.") +from qm.qua import align, amp, play, wait, measure, dual_demod, declare, fixed +from qm.qua._type_hinting import * +from qm.qua._dsl import _PulseAmp __all__ = [ @@ -120,8 +118,6 @@ def play( automatically set to `self.name`. """ - from qm.qua._dsl import _PulseAmp - if validate and pulse_name not in self.operations: raise KeyError( f"Operation '{pulse_name}' not found in channel '{self.name}'"