Skip to content
Snippets Groups Projects
Commit 2f8f29ea authored by Jan Petermann's avatar Jan Petermann
Browse files

Merge branch 'resortplottest' into 71-tests-for-conversion-db

parents c585d77f 0afa132f
Branches
Tags
No related merge requests found
import unittest
from pathlib import Path
import matplotlib
from openqlab import io, plots
from openqlab.plots.frequency_domain import amplitude_phase
filedir = Path(__file__).parent
datadir = filedir / "data"
class TestAmplitudePhase(unittest.TestCase):
def setUp(self):
self.data = io.read(datadir / "scope_0.csv")
def test_default_plot(self):
plot = amplitude_phase(self.data["Gain (dB)"], self.data["Phase (deg)"])
self.assertIsInstance(plot, matplotlib.figure.Figure)
def test_clamp_phase_warns(self):
with self.assertWarns(DeprecationWarning):
plots.frequency_domain._clamp_phase(4)
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment