Skip to content

Commit

Permalink
Fix spelling issues
Browse files Browse the repository at this point in the history
Signed-off-by: Travis F. Collins <[email protected]>
  • Loading branch information
tfcollins committed Jan 30, 2023
1 parent 65b3c2e commit 53e804b
Show file tree
Hide file tree
Showing 11 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions .codespell-whitelist
Original file line number Diff line number Diff line change
Expand Up @@ -4,3 +4,4 @@ SOM
som
sinc
byteorder
inout
2 changes: 1 addition & 1 deletion adi/QuadMxFE_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -218,7 +218,7 @@ def hmc7044_set_cap_sel(self, vals):
parameters:
vals: type=list
Forces certain Capacitor bank seletions.
Forces certain Capacitor bank selections.
Typically the list returned form hmc7044_cap_sel
"""
for dev in [self.primary] + self.secondaries:
Expand Down
2 changes: 1 addition & 1 deletion adi/adrv9009_zu11eg_multi.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ def hmc7044_set_cap_sel(self, vals):
parameters:
vals: type=list
Forces certain Capacitor bank seletions.
Forces certain Capacitor bank selections.
Typically the list returned form hmc7044_cap_sel
"""
for dev in [self.primary] + self.secondaries:
Expand Down
2 changes: 1 addition & 1 deletion examples/ad4020_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
device_name = "ad4020"
vref = 5.0 # Manually entered, consult eval board manual

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default context manager search
my_uri = sys.argv[1] if len(sys.argv) >= 2 else "ip:analog.local"
print("uri: " + str(my_uri))
Expand Down
2 changes: 1 addition & 1 deletion examples/adaq8092_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
import numpy as np
from adi import adaq8092

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default ip:analog.local
my_uri = sys.argv[1] if len(sys.argv) >= 2 else "ip:analog.local"
print("uri: " + str(my_uri))
Expand Down
2 changes: 1 addition & 1 deletion examples/adxl313_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import adi

# Passs URI as command line argument
# pass URI as command line argument
my_uri = sys.argv[1] if len(sys.argv) >= 2 else None

# Set up ADXL31x
Expand Down
2 changes: 1 addition & 1 deletion examples/adxl355_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import adi

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default context manager search
my_uri = sys.argv[1] if len(sys.argv) >= 2 else None
print("uri: " + str(my_uri))
Expand Down
2 changes: 1 addition & 1 deletion examples/adxl355_no_os_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@

import adi

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default context manager search
my_uri = sys.argv[1] if len(sys.argv) >= 2 else None
print("uri: " + str(my_uri))
Expand Down
2 changes: 1 addition & 1 deletion examples/lm75_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

import adi

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default context manager search
my_uri = sys.argv[1] if len(sys.argv) >= 2 else None
print("uri: " + str(my_uri))
Expand Down
2 changes: 1 addition & 1 deletion examples/ltc2387_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
device_name = "ltc2387"
vref = 4.096

# Optionally passs URI as command line argument,
# Optionally pass URI as command line argument,
# else use default context manager search
my_uri = sys.argv[1] if len(sys.argv) >= 2 else "ip:analog.local"
print("uri: " + str(my_uri))
Expand Down
6 changes: 3 additions & 3 deletions test/generics.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,12 +250,12 @@ def __init__(self, uri, phy, rxdev):
counts = np.zeros((chans, bs), dtype=int)
tries = 10
for _ in range(tries):
datas = c.rx()
for chan, data in enumerate(datas):
data_sets = c.rx()
for chan, data in enumerate(data_sets):
for i, sample in enumerate(data):
counts[chan, i] += counts[chan, i] + sample == 0.0

for chan, data in enumerate(datas):
for chan, data in enumerate(data_sets):
for i, sample in enumerate(data):
counts[chan, i] = counts[chan, i] / tries
# print(counts[chan,i])
Expand Down

0 comments on commit 53e804b

Please sign in to comment.