Skip to content

Commit

Permalink
feat(linwave): remove warning for odd pulse counts
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasberbuer committed Dec 4, 2024
1 parent 4e91bd4 commit fa5a66e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/waveline/linwave.py
Original file line number Diff line number Diff line change
Expand Up @@ -544,19 +544,14 @@ async def start_pulsing(
"""
Start pulsing.
The number of pulses should be even, because pulses are generated by a square-wave signal
(between LOW and HIGH) and the pulse signal should end LOW.
Args:
channel: Channel number (0 for all channels)
interval: Interval between pulses in seconds
count: Number of pulses per channel (should be even), 0 for infinite pulses
count: Number of pulses per channel, 0 for infinite pulses
cycles: Number of pulse cycles (automatically pulse through each channel in cycles).
Only useful if all channels are chosen.
"""
self._check_channel_number(channel)
if count % 2 != 0:
warn("Number of pulse counts should be even", stacklevel=1)
logger.info(
"Start pulsing on %s (interval: %f s, count: %d, cycles: %d)",
_channel_str(channel),
Expand Down

0 comments on commit fa5a66e

Please sign in to comment.