From 48fc175a6b619d02cfd728ceef009c518bd1be88 Mon Sep 17 00:00:00 2001 From: David Nadlinger Date: Sat, 12 Jan 2019 12:01:55 +0000 Subject: [PATCH] coredevice.ttl: More imperative mood in docstrings [nfc] This follows Python conventions (PEP257) and unifies the style with other comments. --- artiq/coredevice/ttl.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/artiq/coredevice/ttl.py b/artiq/coredevice/ttl.py index 4c281904a..78f36ef8b 100644 --- a/artiq/coredevice/ttl.py +++ b/artiq/coredevice/ttl.py @@ -46,7 +46,7 @@ class TTLOut: @kernel def on(self): - """Sets the output to a logic high state at the current position + """Set the output to a logic high state at the current position of the time cursor. The time cursor is not modified by this function.""" @@ -176,7 +176,7 @@ class TTLInOut: @kernel def pulse_mu(self, duration): - """Pulses the output high for the specified duration + """Pulse the output high for the specified duration (in machine units). The time cursor is advanced by the specified duration.""" @@ -186,7 +186,7 @@ class TTLInOut: @kernel def pulse(self, duration): - """Pulses the output high for the specified duration + """Pulse the output high for the specified duration (in seconds). The time cursor is advanced by the specified duration."""