Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
core_tools
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
core_tools
Commits
7a75ed09
Commit
7a75ed09
authored
4 years ago
by
Stephan Philips
Browse files
Options
Downloads
Patches
Plain Diff
more tests for sweeps
parent
429b168b
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
.gitignore
+3
-0
3 additions, 0 deletions
.gitignore
core_tools/sweeps/sweeps.py
+29
-5
29 additions, 5 deletions
core_tools/sweeps/sweeps.py
with
32 additions
and
5 deletions
.gitignore
+
3
−
0
View file @
7a75ed09
...
...
@@ -128,3 +128,6 @@ dmypy.json
# Pyre type checker
.pyre/
# neglect db files
.db
This diff is collapsed.
Click to expand it.
core_tools/sweeps/sweeps.py
+
29
−
5
View file @
7a75ed09
...
...
@@ -160,10 +160,28 @@ if __name__ == '__main__':
def
set_raw
(
self
,
val
):
self
.
_count
=
val
class
dummy_multi_parameter_2dawg
(
qc
.
MultiParameter
):
def
__init__
(
self
,
name
,
label
=
None
,
unit
=
None
):
super
().
__init__
(
name
=
name
,
instrument
=
None
,
names
=
(
"
test12
"
,
"
test1234
"
),
shapes
=
(
tuple
()
,
tuple
()
),
labels
=
(
"
digitzer_response
"
,
"
D2
"
),
units
=
(
"
unit1
"
,
"
unit2
"
),
)
self
.
setpoints
=
(
tuple
(),
tuple
())
self
.
setpoint_shapes
=
(
tuple
(),
tuple
())
self
.
setpoint_labels
=
(
(
"
I channel
"
,
),
(
'
Q channel
'
,
))
self
.
setpoint_units
=
(
(
"
mV
"
,
),
(
"
mV
"
,
))
self
.
setpoint_names
=
(
(
"
I_channel
"
,
),
(
"
Q_channel
"
,
))
self
.
i
=
2
def
get_raw
(
self
):
self
.
i
+=
1
return
(
self
.
i
,
self
.
i
+
100
)
now
=
str
(
datetime
.
datetime
.
now
())
tutorial_db_
path
=
os
.
path
.
join
(
os
.
getcwd
(),
'
linking_datasets_tutorial
.db
'
)
initialise_or_create_database_at
(
tutorial_db_
path
)
path
=
os
.
path
.
join
(
os
.
getcwd
(),
'
test
.db
'
)
initialise_or_create_database_at
(
path
)
load_or_create_experiment
(
'
tutorial
'
+
now
,
'
no sample
'
)
my_param
=
MyCounter
(
'
test_instr
'
)
from
qcodes.instrument.specialized_parameters
import
ElapsedTimeParameter
...
...
@@ -173,7 +191,13 @@ if __name__ == '__main__':
y
=
qc
.
Parameter
(
name
=
'
y
'
,
label
=
'
Voltage_y
'
,
unit
=
'
V
'
,
set_cmd
=
None
,
get_cmd
=
None
)
timer
=
ElapsedTimeParameter
(
'
time
'
)
# do0D(my_param).run()
my_param_multi_test
=
dummy_multi_parameter_2dawg
(
'
param
'
)
from
core_tools.GUI.keysight_videomaps.data_getter.scan_generator_Virtual
import
construct_1D_scan_fast
,
construct_2D_scan_fast
,
fake_digitizer
param_1D
=
construct_1D_scan_fast
(
"
P2
"
,
10
,
10
,
5000
,
True
,
None
,
fake_digitizer
(
'
test
'
))
param_2D
=
construct_2D_scan_fast
(
'
P2
'
,
10
,
10
,
'
P5
'
,
10
,
10
,
50000
,
True
,
None
,
fake_digitizer
(
'
test
'
))
data_1D
=
param_1D
.
get
()
do0D
(
param_2D
).
run
()
# do1D(x, 0, 100, 50, 0.1 , my_param, reset_param=True).run()
do2D
(
x
,
0
,
20
,
20
,
0.0
,
y
,
0
,
80
,
30
,
0.01
,
my_param
).
run
()
do2D
(
x
,
0
,
20
,
20
,
0.0
,
timer
,
0
,
80
,
30
,
0.1
,
my_param
).
run
()
\ No newline at end of file
# do2D(x, 0, 20, 20, 0.0, y, 0, 80, 30, 0.01, my_param).run()
# do2D(x, 0, 20, 20, 0.0, timer, 0, 80, 30, 0.1, my_param).run()
\ No newline at end of file
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