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
3322dfde
Commit
3322dfde
authored
4 months ago
by
Sander Snoo
Browse files
Options
Downloads
Patches
Plain Diff
improved test code
parent
e876759a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
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
+6
-2
6 additions, 2 deletions
pulse_lib/tests/configurations/test_configuration.py
with
6 additions
and
2 deletions
pulse_lib/tests/configurations/test_configuration.py
+
6
−
2
View file @
3322dfde
import
logging
import
os
import
math
import
os
from
collections.abc
import
Sequence
from
functools
import
partial
from
numbers
import
Number
...
...
@@ -33,6 +33,8 @@ logger = logging.getLogger(__name__)
def
init_logging
():
start_all_logging
()
logging
.
getLogger
(
"
qcodes
"
).
setLevel
(
logging
.
INFO
)
logging
.
getLogger
(
"
matplotlib
"
).
setLevel
(
logging
.
INFO
)
qc_logger
.
get_console_handler
().
setLevel
(
logging
.
WARN
)
qc_logger
.
get_file_handler
().
setLevel
(
logging
.
DEBUG
)
...
...
@@ -480,6 +482,7 @@ class Context:
def
plot_awgs
(
self
,
sequence
,
index
=
None
,
print_acquisitions
=
False
,
analogue_out
=
False
,
savefig
=
False
,
analogue_shift
=
0.0
,
create_figure
=
True
,
**
kwargs
):
self
.
last_sequence
=
sequence
job
=
sequence
.
upload
(
index
)
...
...
@@ -490,7 +493,8 @@ class Context:
ion_ctx
=
pt
.
ioff
()
for
awg
in
list
(
pulse
.
awg_devices
.
values
())
+
list
(
pulse
.
digitizers
.
values
()):
if
hasattr
(
awg
,
'
plot
'
):
pt
.
figure
()
if
create_figure
:
pt
.
figure
()
render_kwargs
=
{}
if
analogue_out
:
render_kwargs
[
'
analogue
'
]
=
True
...
...
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