Skip to content

Commit

Permalink
Merge e2027cf into 014ce7d
Browse files Browse the repository at this point in the history
  • Loading branch information
jlashner committed Oct 21, 2020
2 parents 014ce7d + e2027cf commit 818d46a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_pacemaker.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def test_quantized():
pm.sleep()
print("Sample time: {}".format(time.time()))
times.append(time.time())
time.sleep(np.random.uniform(0, 1/sample_freq))
time.sleep(1/sample_freq/3)
diffs = np.diff(np.array(times))
# Checks if the diffs (minus the first point due to quantization) match
tolerance = 1/sample_freq / 5
Expand All @@ -35,7 +35,7 @@ def test_nonquantized():
pm.sleep()
print("Sample time: {}".format(time.time()))
times.append(time.time())
time.sleep(np.random.uniform(0, 1/sample_freq))
time.sleep(1/sample_freq/3)
diffs = np.diff(np.array(times))
# Checks if the diffs (minus the first point due to quantization) match
tolerance = 1/sample_freq / 5
Expand Down

0 comments on commit 818d46a

Please sign in to comment.