Skip to content
Snippets Groups Projects
Unverified Commit 998d11f2 authored by Sander de Snoo's avatar Sander de Snoo Committed by GitHub
Browse files

Merge pull request #28 from NicoHendrickx/dev

move the check on hardware class into the load_hardware.
parents 6f215198 07e0d7ce
No related branches found
No related tags found
No related merge requests found
......@@ -10,11 +10,6 @@ from pulse_lib.configuration.devices import awg_slave
from pulse_lib.virtual_matrix.virtual_gate_matrices import VirtualGateMatrices
try:
from core_tools.drivers.hardware.hardware import hardware as hw_cls
except:
print('old version of core_tools detected ..')
class pulselib:
'''
Global class that is an organisational element in making the pulses.
......@@ -397,6 +392,11 @@ class pulselib:
Args:
hardware (harware_parent) : harware class.
'''
try:
from core_tools.drivers.hardware.hardware import hardware as hw_cls
except:
logging.warning('old version of core_tools detected ..')
try:
new_hardware_class = isinstance(hardware, hw_cls)
except:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment