Skip to content

Commit

Permalink
Remove irrelevant edits
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Gustafsson committed Aug 28, 2024
1 parent 76c16ff commit f0ffc13
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions src/auspex/instruments/agilent.py
Original file line number Diff line number Diff line change
Expand Up @@ -735,9 +735,9 @@ class _AgilentNetworkAnalyzer(SCPIInstrument):

##Basic SCPI commands.
frequency_center = FloatCommand(scpi_string=":SENSe:FREQuency:CENTer")
frequency_start = FloatCommand(scpi_string=":SENSe:FREQuency:STARt", formatter="{:.0f}")
frequency_stop = FloatCommand(scpi_string=":SENSe:FREQuency:STOP", formatter="{:.0f}")
frequency_span = FloatCommand(scpi_string=":SENSe:FREQuency:SPAN", formatter="{:.0f}")
frequency_start = FloatCommand(scpi_string=":SENSe:FREQuency:STARt", formatter={:.0f})
frequency_stop = FloatCommand(scpi_string=":SENSe:FREQuency:STOP", formatter={:.0f})
frequency_span = FloatCommand(scpi_string=":SENSe:FREQuency:SPAN", formatter={:.0f})
if_bandwidth = FloatCommand(scpi_string=":SENSe1:BANDwidth")
num_points = IntCommand(scpi_string=":SENSe:SWEep:POINTS")

Expand Down Expand Up @@ -788,10 +788,9 @@ def output_enable(self, outp):
the port being in `OFF` mode, while `True` corresponds to the port being in `AUTO` mode.
"""
if isinstance(outp, dict):
for k, v in outp.items():
for k, v in self.outp.items():
val = "AUTO" if v else "OFF"
self.interface.write(f" {val}")
print(f"Setting port {k} to {val}")
self.interface.write(f"SOUR:POW{k}:MODE {val}")
else:
val = "AUTO" if outp else "OFF"
for p in self.ports:
Expand Down

0 comments on commit f0ffc13

Please sign in to comment.