Skip to content

Commit f847af6

Browse files
committed
Add module docstring
1 parent 00ca437 commit f847af6

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

tests/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def record_traffic(log: list, logfile: str):
7474
elif direction == b"RX":
7575
rx[-1] += list(data)
7676
else:
77-
raise ValueError("Unknown direction: {direction}")
77+
raise ValueError(f"Unknown direction: {direction}")
7878

7979
print([tx, rx])
8080
json.dump([tx, rx], open(logfile, "w"))

tests/test_oscilloscope.py

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
"""Tests for PSL.oscilloscope.
2+
3+
When integration testing, the PSLab's analog output is used to generate a signal
4+
which is sampled by the oscilloscope. Before running the integration tests,
5+
connect SI1->CH1->CH2->CH3.
6+
"""
7+
18
import numpy as np
29
import pytest
310
from scipy.optimize import curve_fit
@@ -24,7 +31,7 @@ def scope(handler):
2431
psl = sciencelab.connect()
2532
psl.H.disconnect()
2633
psl.H = handler
27-
psl.set_sine1(1000)
34+
psl.set_sine1(FREQUENCY)
2835
handler._logging = True
2936
return oscilloscope.Oscilloscope(handler)
3037

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy