Skip to content

Commit 2de02e0

Browse files
authored
Reformat code with psf/black
1 parent 9e7e017 commit 2de02e0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

examples/ads1x15_fast_read.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,15 @@
3232
for i in range(SAMPLES):
3333
data[i] = chan0.value
3434
# Detect repeated values due to over polling
35-
if data[i] == data[i-1]:
35+
if data[i] == data[i - 1]:
3636
repeats += 1
3737

3838

3939
end = time.monotonic()
4040
total_time = end - start
4141

4242
rate_reported = SAMPLES / total_time
43-
rate_actual = (SAMPLES-repeats) / total_time
43+
rate_actual = (SAMPLES - repeats) / total_time
4444
# NOTE: leave input floating to pickup some random noise, this cannot estimate conversion rates higher than polling rate
4545

4646
print("Took {:5.3f} s to acquire {:d} samples.".format(total_time, SAMPLES))

0 commit comments

Comments
 (0)