Skip to content

Commit

Permalink
run black on new code
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Nov 30, 2022
1 parent 912cd91 commit 8f3685f
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions qcodes/instrument_drivers/Keysight/N51x1.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,15 @@ def __init__(self, name: str, address: str, min_power: int = -144, max_power: in
unit='dBm',
vals=Numbers(min_value=min_power,max_value=max_power))

self.add_parameter('frequency',
label='Frequency',
get_cmd='SOUR:FREQ?',
get_parser=float,
set_cmd='SOUR:FREQ {:.2f}',
unit='Hz',
vals=Numbers(min_value=9e3, max_value=max_freq))
self.add_parameter(
"frequency",
label="Frequency",
get_cmd="SOUR:FREQ?",
get_parser=float,
set_cmd="SOUR:FREQ {:.2f}",
unit="Hz",
vals=Numbers(min_value=9e3, max_value=max_freq),
)

self.add_parameter('phase_offset',
label='Phase Offset',
Expand All @@ -73,7 +75,7 @@ def __init__(self, name: str, address: str, min_power: int = -144, max_power: in
val_mapping=create_on_off_val_mapping(on_val=1, off_val=0),
)

if 'UNW' in self._options:
if "UNW" in self._options:
self.add_parameter(
"pulse_modulation",
get_cmd="PULM:STAT?",
Expand Down

0 comments on commit 8f3685f

Please sign in to comment.