Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
pulse_lib
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
QuTech QDLabs
pulse_lib
Commits
b5ec58d5
Commit
b5ec58d5
authored
2 years ago
by
Sander de Snoo
Browse files
Options
Downloads
Patches
Plain Diff
Added sweeps to test context
parent
2f07427b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
pulse_lib/tests/configurations/test_configuration.py
+7
-4
7 additions, 4 deletions
pulse_lib/tests/configurations/test_configuration.py
with
7 additions
and
4 deletions
pulse_lib/tests/configurations/test_configuration.py
+
7
−
4
View file @
b5ec58d5
...
...
@@ -21,7 +21,7 @@ from pulse_lib.schedule.tektronix_schedule import TektronixSchedule
try
:
import
core_tools
as
ct
from
core_tools.sweeps.s
weep
s
import
do0D
from
core_tools.sweeps.s
can
s
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
}
'
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment