Skip to content

Commit 21b9a6b

Browse files
committed
converting to float
1 parent 13f65be commit 21b9a6b

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/qililab/instruments/keysight/e5080b_vna.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ class E5080BSettings(Instrument.InstrumentSettings):
8181
trigger_source: VNATriggerSource | None = None
8282
trigger_type: VNATriggerType | None = None
8383
sweep_group_count: int | None = None
84-
electrical_delay: int | None = None
84+
electrical_delay: float | None = None
8585

8686
settings: E5080BSettings
8787
device: KeysightE5080B
@@ -288,7 +288,7 @@ def format_border(self) -> VNAFormatBorder | None:
288288
return self.settings.format_border
289289

290290
@property
291-
def electrical_delay(self) -> int | None:
291+
def electrical_delay(self) -> float | None:
292292
"""Gets the electrical delay for plotting purposes only
293293
294294
Returns:
@@ -445,7 +445,7 @@ def set_parameter(
445445
return
446446

447447
if parameter == Parameter.ELECTRICAL_DELAY:
448-
self.settings.electrical_delay = int(value)
448+
self.settings.electrical_delay = float(value)
449449
return
450450

451451
raise ParameterNotFound(self, parameter)

0 commit comments

Comments
 (0)