Skip to content

Commit

Permalink
✅ fix pf integration tests
Browse files Browse the repository at this point in the history
  • Loading branch information
apearce committed Nov 14, 2024
1 parent 4688424 commit a56623a
Showing 1 changed file with 22 additions and 25 deletions.
47 changes: 22 additions & 25 deletions tests/integration/test_pfcoil_int.py
Original file line number Diff line number Diff line change
Expand Up @@ -2397,13 +2397,13 @@ def test_peakb(monkeypatch: pytest.MonkeyPatch, pfcoil: PFCoil):
"waves",
np.array(
[
[0.0, 0.00457346, 0.00457346, 0.00457346, 1.0, 0.0],
[0.0, -0.14559845, -0.14559845, -0.14559845, 1.0, 0.0],
[0.0, 1.0, 1.0, 1.0, -0.07156774, 0.0],
[0.0, 1.0, 1.0, 1.0, -0.07156774, 0.0],
[0.0, 1.0, 1.0, 1.0, -0.07676189, 0.0],
[0.0, 1.0, 1.0, 1.0, -0.07676189, 0.0],
[0.0, 1.0, 1.0, 1.0, -0.93176, 0.0],
[0.0, 1.0, 0.00457346, 0.00457346, 0.00457346, 0.0],
[0.0, 1.0, -0.14559845, -0.14559845, -0.14559845, 0.0],
[0.0, -0.07156774, 1.0, 1.0, 1.0, 0.0],
[0.0, -0.07156774, 1.0, 1.0, 1.0, 0.0],
[0.0, -0.07676189, 1.0, 1.0, 1.0, 0.0],
[0.0, -0.07676189, 1.0, 1.0, 1.0, 0.0],
[0.0, -0.93176, 1.0, 1.0, 1.0, 0.0],
[1.0, 1.0, 1.0, 1.0, 1.0, 1.0],
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
[0.0, 0.0, 0.0, 0.0, 0.0, 0.0],
Expand Down Expand Up @@ -2492,13 +2492,13 @@ def test_peakb(monkeypatch: pytest.MonkeyPatch, pfcoil: PFCoil):
"curpfb",
np.array(
[
0.067422231232391661,
-2.9167273287450968,
-8.1098913365453491,
-8.1098913365453491,
-5.5984385047179153,
-5.5984385047179153,
-186.98751599968148,
14.742063826112622,
20.032681634901664,
0.58040662653667285,
0.58040662653667285,
0.42974674788703021,
0.42974674788703021,
174.22748790786324,
0,
0,
0,
Expand Down Expand Up @@ -2552,13 +2552,13 @@ def test_peakb(monkeypatch: pytest.MonkeyPatch, pfcoil: PFCoil):
"curpfs",
np.array(
[
14.742063826112622,
20.032681634901664,
0.58040662653667285,
0.58040662653667285,
0.42974674788703021,
0.42974674788703021,
174.22748790786324,
0.067422231232391661,
-2.9167273287450968,
-8.1098913365453491,
-8.1098913365453491,
-5.5984385047179153,
-5.5984385047179153,
-186.98751599968148,
0,
0,
0,
Expand Down Expand Up @@ -2621,10 +2621,7 @@ def test_peakb(monkeypatch: pytest.MonkeyPatch, pfcoil: PFCoil):
bzo_exp = -6.438987

bri, bro, bzi, bzo = pfcoil.peakb(i, ii, it)
print(bri)
print(bro)
print(bzi)
print(bzo)

assert pytest.approx(bri) == bri_exp
assert pytest.approx(bro) == bro_exp
assert pytest.approx(bzi) == bzi_exp
Expand Down

0 comments on commit a56623a

Please sign in to comment.