Skip to content

Commit

Permalink
A couple of documentation fixes
Browse files Browse the repository at this point in the history
Signed-off-by: Kévin Petit <kpet@free.fr>
  • Loading branch information
kpet committed Jul 31, 2024
1 parent a4f076a commit 9f73740
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/dev/adding_instruments/instrument.rst
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ The most basic instrument, for our "Extreme 5000" example starts like this:
# THE SOFTWARE.
#

# from pymeasure.instruments import Instrument
from pymeasure.instruments import Instrument

This is a minimal instrument definition:

Expand Down
2 changes: 1 addition & 1 deletion docs/dev/adding_instruments/properties.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ PyMeasure comes with three central convenience factory functions for making prop
You can call them, however, as :code:`Instrument.control`, :code:`Instrument.measurement`, and :code:`Instrument.setting`.

The :func:`Instrument.measurement <pymeasure.instruments.common_base.CommonBase.measurement>` function returns a property that can only read values from an instrument.
For example, if our "Extreme 5000" has the :code:`*IDN?` command, we can write the following property to be added after the :code:`def __init__` line in our above example class, or added to the class after the fact as in the code here:
For example, if our "Extreme 5000" has the :code:`:TEMP?` command, we can write the following property to be added after the :code:`def __init__` line in our above example class, or added to the class after the fact as in the code here:

.. _Python properties: https://docs.python.org/3/howto/descriptor.html#properties

Expand Down

0 comments on commit 9f73740

Please # to comment.