Skip to content

Commit 36eee3c

Browse files
mjohanse-emrMichael Johansenbkeryan
authored
Update timing documentation to relate to LabVIEW waveforms. (#159)
* Update timing documentation to relate to LabVIEW waveforms. Signed-off-by: Michael Johansen <[email protected]> * Address review feedback by updating comments. Signed-off-by: Michael Johansen <[email protected]> * Update src/nitypes/waveform/_timing/_timing.py Co-authored-by: Brad Keryan <[email protected]> * Change :property: to :attr: Signed-off-by: Michael Johansen <[email protected]> --------- Signed-off-by: Michael Johansen <[email protected]> Co-authored-by: Michael Johansen <[email protected]> Co-authored-by: Brad Keryan <[email protected]>
1 parent ed7c699 commit 36eee3c

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

src/nitypes/waveform/_timing/_timing.py

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,11 @@ def has_start_time(self) -> bool:
203203

204204
@property
205205
def start_time(self) -> TTimestamp_co:
206-
"""The time that the first sample in the waveform was acquired."""
206+
"""The time that the first sample in the waveform was acquired.
207+
208+
This is equivalent to ``t0`` in a LabVIEW waveform.
209+
This value is derived from :attr:`timestamp` + :attr:`time_offset`.
210+
"""
207211
value = self.timestamp
208212
if self.has_time_offset:
209213
# Work around https://github.com/python/mypy/issues/18203
@@ -230,7 +234,10 @@ def has_sample_interval(self) -> bool:
230234

231235
@property
232236
def sample_interval(self) -> TSampleInterval_co:
233-
"""The time interval between samples."""
237+
"""The time interval between samples.
238+
239+
This is equivalent to ``dt`` in a LabVIEW waveform.
240+
"""
234241
value = self._sample_interval
235242
if value is None:
236243
raise RuntimeError("The waveform timing does not have a sample interval.")

0 commit comments

Comments
 (0)