From 6b0eae1b7f336892f82a77184a52258bc4ebcfd9 Mon Sep 17 00:00:00 2001 From: Jens Peter Secher Date: Fri, 4 Nov 2022 11:40:28 +0100 Subject: [PATCH] Documentation improvements --- qcodes_contrib_drivers/drivers/QDevil/QDAC2.py | 6 +++--- qcodes_contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/qcodes_contrib_drivers/drivers/QDevil/QDAC2.py b/qcodes_contrib_drivers/drivers/QDevil/QDAC2.py index ac410cbe4..037cc66db 100644 --- a/qcodes_contrib_drivers/drivers/QDevil/QDAC2.py +++ b/qcodes_contrib_drivers/drivers/QDevil/QDAC2.py @@ -80,7 +80,7 @@ def __enter__(self): def __exit__(self, exc_type, exc_val, exc_tb): self._parent.free_trigger(self) - # Propacontact exceptions + # Propagate exceptions return False @property @@ -187,7 +187,7 @@ def __enter__(self): return self def __exit__(self, exc_type, exc_val, exc_tb): - # Propacontact exceptions + # Propagate exceptions return False def allocate_trigger(self) -> QDac2Trigger_Context: @@ -1913,7 +1913,7 @@ def virtual_detune(self, contacts: Sequence[str], start_V: Sequence[float], step_time_s: float = 1e-5, step_trigger: Optional[str] = None, repetitions: int = 1) -> Virtual_Sweep_Context: - """Sweep any number of contacts from one set of values to another set of values + """Sweep any number of contacts linearly from one set of values to another set of values Args: contacts (Sequence[str]): contacts involved in sweep diff --git a/qcodes_contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py b/qcodes_contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py index 62ad35d09..887c27ff4 100644 --- a/qcodes_contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py +++ b/qcodes_contrib_drivers/tests/QDevil/sim_qdac2_fixtures.py @@ -19,7 +19,7 @@ def instance(): def __init__(self): if DUT._instance: - raise ValueError('DUT is a singleton, call instance()') + raise ValueError('DUT is a singleton, use instance() instead') DUT._instance = self name = ('dac' + str(uuid.uuid4())).replace('-', '') try: