Skip to content

Commit a9795d1

Browse files
committed
spell check
1 parent f569f59 commit a9795d1

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

examples/plotting_scanraw.py

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,18 @@
44
# tinySA_python
55
# './examples/plotting_scanraw.py'
66
# This is a visual comparison of SCAN and SCANRAW to work out some errors in
7-
# the decode process given that the tinySA is still running during the read,
8-
# we don't expect SCAN and SCANRAW to be exactly the same, but they
7+
# the decode process. We don't expect SCAN and SCANRAW to be exactly the same,
8+
# because the number of points taken are not the same, but they
99
# should be relatively similar values when SCANRAW is decoded
1010
#
11-
# Last update: June 18, 2025
11+
# Last update: July 2, 2025
1212
##-------------------------------------------------------------------------------\
1313

1414

15-
1615
# import tinySA library
1716
# (NOTE: check library path relative to script path)
1817
from src.tinySA_python import tinySA
1918

20-
2119
# imports FOR THE EXAMPLE
2220
import numpy as np
2321
import matplotlib.pyplot as plt
@@ -62,15 +60,13 @@ def convert_data_to_arrays(start, stop, pts, data):
6260

6361
return freq_arr, data_arr
6462

65-
6663
# create a new tinySA object
6764
tsa = tinySA()
6865

6966
# set the return message preferences
7067
tsa.set_verbose(True) #detailed messages
7168
tsa.set_error_byte_return(True) #get explicit b'ERROR' if error thrown
7269

73-
7470
# attempt to autoconnect
7571
found_bool, connected_bool = tsa.autoconnect()
7672

@@ -93,7 +89,6 @@ def convert_data_to_arrays(start, stop, pts, data):
9389
# SCAN RAW
9490
scanraw_data_bytes = tsa.scan_raw(start, stop, pts, outmask)
9591

96-
9792
# for subsequent reads, the tinySA does freeze while preforming SCANRAW
9893
# if there's an error, the screen will stay frozen (for reading).
9994
# So start it again so new data can be taken
@@ -143,4 +138,3 @@ def convert_data_to_arrays(start, stop, pts, data):
143138
plt.show()
144139
else:
145140
print("SCANRAW did not return the expected amount of data for the read")
146-

0 commit comments

Comments
 (0)