Skip to content
This repository has been archived by the owner on Nov 4, 2023. It is now read-only.

Commit

Permalink
BF: Sample count should always be an integer
Browse files Browse the repository at this point in the history
  • Loading branch information
hoechenberger committed Apr 15, 2016
1 parent 14cbd3c commit 3db3bb6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pphelper/hardware.py
Original file line number Diff line number Diff line change
Expand Up @@ -549,8 +549,8 @@ def sampling_rate(self):
def sampling_rate(self, sampling_rate):
self._ni_task.stop()
self._sampling_rate = sampling_rate
self._samples_to_acquire = self._sampling_rate * \
self._sampling_duration
self._samples_to_acquire = \
np.ceil(self._sampling_rate * self._sampling_duration)
self._ni_task.configure_timing_sample_clock(
rate=sampling_rate,
sample_mode='finite',
Expand Down

0 comments on commit 3db3bb6

Please sign in to comment.