Skip to content

Commit

Permalink
Fixes prompted by linter
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidLutton authored Dec 27, 2023
1 parent bd0e364 commit 578c028
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
3 changes: 3 additions & 0 deletions src/labtoolkit/File/wv.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ def read(file):
data = data.astype(np.float32)
data = data.view(np.complex64)

key_end = 0 # stub for linter
data_begin = 0 # stub for linter

headers = {}
for index, char in enumerate(header_raw):
match char:
Expand Down
5 changes: 4 additions & 1 deletion src/labtoolkit/SpectrumAnalyser/AnritsuMS266nC.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,7 @@ def trace(self):
x = np.linspace(self.frequency_start, self.frequency_stop, len(y))
columns = ['Frequency (Hz)', 'dBm'] # TODO Unit Power

return pd.DataFrame(np.column_stack((x, y, columns=columns)).set_index(columns[0])
return pd.DataFrame(
np.column_stack((x, y)),
columns=columns,
).set_index(columns[0])

0 comments on commit 578c028

Please sign in to comment.