Skip to content

Commit d45d6ea

Browse files
committed
flake fix
1 parent e49037c commit d45d6ea

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

tests/test_transformer.py

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
import pandas as pd
2+
import pytest
23

34
from numpy.testing import assert_allclose
4-
55
from pvlib import transformer
66

7-
import pytest
87

98
def test_simple_efficiency():
109

@@ -60,19 +59,18 @@ def test_simple_efficiency_known_values():
6059
rating,
6160
)
6261

62+
6363
@pytest.mark.parametrize(
6464
"input_power, no_load_loss, load_loss, transformer_rating, expected",
6565
[
6666
(1000.0, 0.01, 0.0, 1000.0, 990.0),
6767
],
6868
)
69-
7069
def test_simple_efficiency_zero_load_loss(
7170
input_power, no_load_loss, load_loss, transformer_rating, expected
7271
):
7372
# for load_loss = 0, the model reduces to:
7473
# P_out = P_in - L_no_load * P_nom
75-
7674
result = transformer.simple_efficiency(
7775
input_power=input_power,
7876
no_load_loss=no_load_loss,

0 commit comments

Comments
 (0)