Skip to content

Commit

Permalink
Docstring modifications (#207)
Browse files Browse the repository at this point in the history
  • Loading branch information
scasagrande committed Feb 15, 2019
1 parent e05dad5 commit b59a45a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions instruments/minghe/mhs5200a.py
Expand Up @@ -83,7 +83,7 @@ def duty_cycle(self):
Gets/Sets the duty cycle of this channel.
:units: A fraction
:type: `~quantities.Quantity`
:type: `float`
"""
query = ":r{0}d".format(self._chan)
response = self._mhs.query(query)
Expand All @@ -100,7 +100,6 @@ def enable(self):
"""
Gets/Sets the enable state of this channel.
:param newval: the enable state
:type: `bool`
"""
query = ":r{0}b".format(self._chan)
Expand Down Expand Up @@ -138,8 +137,8 @@ def offset(self):
"""
Gets/Sets the offset of this channel.
:param new_val: The fraction of the duty cycle to offset the
function by.
The fraction of the duty cycle to offset the function by.
:type: `float`
"""
# need to convert
Expand Down Expand Up @@ -208,6 +207,7 @@ def channel(self):
For instance, this would print the counts of the first channel::
>>> import instruments as ik
>>> mhs = ik.minghe.MHS5200.open_serial(vid=1027, pid=24577,
baud=19200, timeout=1)
>>> print(mhs.channel[0].frequency)
Expand Down

0 comments on commit b59a45a

Please sign in to comment.