Skip to content
Snippets Groups Projects
Commit 55117c94 authored by Sander Snoo's avatar Sander Snoo
Browse files

Merge branch 'dev' of https://github.com/stephanlphilips/pulse_lib into dev

parents b60b08dd b5ec58d5
No related branches found
No related tags found
No related merge requests found
......@@ -21,7 +21,7 @@ from pulse_lib.schedule.tektronix_schedule import TektronixSchedule
try:
import core_tools as ct
from core_tools.sweeps.sweeps import do0D
from core_tools.sweeps.scans import sweep, Scan
_ct_imported = True
_ct_configured = False
except:
......@@ -270,13 +270,13 @@ class Context:
_ct_configured = True
ct.launch_databrowser()
def run(self, name, sequence, *params, silent=False):
def run(self, name, sequence, *params, silent=False, sweeps=[]):
global _ct_configured
runner = self._configuration['runner']
if runner == 'qcodes':
path = 'C:/measurements/test_pulselib'
DataSet.default_io = DiskIO(path)
return qc_run(name, sequence, *params, quiet=silent)
return qc_run(name, *sweeps, sequence, *params, quiet=silent)
elif runner == 'core_tools':
if not _ct_imported:
......@@ -285,7 +285,10 @@ class Context:
ct.configure(os.path.join(self._dir, 'ct_config.yaml'))
_ct_configured = True
ct.set_sample_info(sample=self.configuration_name)
return do0D(sequence, *params, name=name, silent=silent).run()
scan_sweeps = []
for sw in sweeps:
scan_sweeps.append(sweep(*sw))
return Scan(*scan_sweeps, sequence, *params, name=name, silent=silent).run()
else:
print(f'no implementation for {runner}')
......
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