From 53e804bf42436d5f3b783d949c3c87c3b0423349 Mon Sep 17 00:00:00 2001 From: "Travis F. Collins" Date: Mon, 30 Jan 2023 11:30:42 -0700 Subject: [PATCH] Fix spelling issues Signed-off-by: Travis F. Collins --- .codespell-whitelist | 1 + adi/QuadMxFE_multi.py | 2 +- adi/adrv9009_zu11eg_multi.py | 2 +- examples/ad4020_example.py | 2 +- examples/adaq8092_example.py | 2 +- examples/adxl313_example.py | 2 +- examples/adxl355_example.py | 2 +- examples/adxl355_no_os_example.py | 2 +- examples/lm75_example.py | 2 +- examples/ltc2387_example.py | 2 +- test/generics.py | 6 +++--- 11 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.codespell-whitelist b/.codespell-whitelist index 0f1a1357a..ee9e92c72 100644 --- a/.codespell-whitelist +++ b/.codespell-whitelist @@ -4,3 +4,4 @@ SOM som sinc byteorder +inout diff --git a/adi/QuadMxFE_multi.py b/adi/QuadMxFE_multi.py index b89f0371b..f97331db9 100644 --- a/adi/QuadMxFE_multi.py +++ b/adi/QuadMxFE_multi.py @@ -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: diff --git a/adi/adrv9009_zu11eg_multi.py b/adi/adrv9009_zu11eg_multi.py index 82f91e03a..5a48daebb 100644 --- a/adi/adrv9009_zu11eg_multi.py +++ b/adi/adrv9009_zu11eg_multi.py @@ -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: diff --git a/examples/ad4020_example.py b/examples/ad4020_example.py index 3519eddb5..b8b8c91ff 100644 --- a/examples/ad4020_example.py +++ b/examples/ad4020_example.py @@ -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)) diff --git a/examples/adaq8092_example.py b/examples/adaq8092_example.py index 6574588d2..2fde95b53 100644 --- a/examples/adaq8092_example.py +++ b/examples/adaq8092_example.py @@ -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)) diff --git a/examples/adxl313_example.py b/examples/adxl313_example.py index c8bdd844b..3553ef10e 100644 --- a/examples/adxl313_example.py +++ b/examples/adxl313_example.py @@ -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 diff --git a/examples/adxl355_example.py b/examples/adxl355_example.py index 1d91db495..395725ab0 100644 --- a/examples/adxl355_example.py +++ b/examples/adxl355_example.py @@ -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)) diff --git a/examples/adxl355_no_os_example.py b/examples/adxl355_no_os_example.py index 82c7eeae2..9c69de65c 100644 --- a/examples/adxl355_no_os_example.py +++ b/examples/adxl355_no_os_example.py @@ -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)) diff --git a/examples/lm75_example.py b/examples/lm75_example.py index c92926bb3..df2ab613c 100644 --- a/examples/lm75_example.py +++ b/examples/lm75_example.py @@ -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)) diff --git a/examples/ltc2387_example.py b/examples/ltc2387_example.py index 08a6295cd..c8659afff 100644 --- a/examples/ltc2387_example.py +++ b/examples/ltc2387_example.py @@ -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)) diff --git a/test/generics.py b/test/generics.py index 1fd2e70ea..ba16e0ff1 100644 --- a/test/generics.py +++ b/test/generics.py @@ -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])