Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Institute of Experimental Physics
Quantum Circuits
python-repo
Commits
3489d78d
Commit
3489d78d
authored
Mar 30, 2021
by
Romain Baptiste Dominique Albert
Browse files
Bugfix for the phase shifter
parent
c9313696
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
9 deletions
+6
-9
Instruments/PS.py
Instruments/PS.py
+6
-9
No files found.
Instruments/PS.py
100644 → 100755
View file @
3489d78d
...
...
@@ -113,10 +113,11 @@ class PS(object):
Frequency in Hz. Use '?' to query current value.
"""
resp
=
self
.
instr
.
frequency
(
frequency
)
# Update database values
if
str
(
frequency
)
!=
"?"
:
if
str
(
frequency
)
!=
"?"
and
str
(
frequency
)
!=
"min?"
and
str
(
frequency
)
!=
"max?"
:
update_db
(
self
)
# Return value
...
...
@@ -131,10 +132,11 @@ class PS(object):
Phase in degree. Use '?' to query current value.
"""
resp
=
self
.
instr
.
phase
(
phase
)
# Update database values
if
str
(
phase
)
!=
"?"
:
if
str
(
phase
)
!=
"?"
and
str
(
phase
)
!=
"min?"
and
str
(
phase
)
!=
"max?"
and
str
(
phase
)
!=
"step?"
:
update_db
(
self
)
# Return value
...
...
@@ -142,12 +144,7 @@ class PS(object):
# Database functions #######################################################
def
get_parameters
(
self
):
d
=
{
'Phase'
:
'{} degree'
.
format
(
self
.
phase
()),
'Frequency'
:
'{} Hz'
.
format
(
self
.
frequency
()),
'Minimum frequency'
:
'{} Hz'
.
format
(
self
.
frequency
(
'min?'
)),
'Maximum frequency'
:
'{} Hz'
.
format
(
self
.
frequency
(
'max?'
)),
'Minimum phase'
:
'{} degree'
.
format
(
self
.
phase
(
'min?'
)),
'Maximum phase'
:
'{} degree'
.
format
(
self
.
phase
(
'max?'
)),
'Step phase'
:
'{} degree'
.
format
(
self
.
phase
(
'step?'
)),
}
'Frequency'
:
'{} Hz'
.
format
(
self
.
frequency
())}
return
d
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment