File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed
Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change 66
77import numpy as np
88
9+
910def test_simple_efficiency ():
1011
1112 # define test inputs
@@ -58,7 +59,7 @@ def test_simple_efficiency_known_values():
5859 transformer .simple_efficiency (rating * (1 + no_load_loss + load_loss ),
5960 * args ),
6061 rating ,
61- )
62+ )
6263
6364
6465def test_simple_efficiency_numpy_array_inputs ():
@@ -77,6 +78,7 @@ def test_simple_efficiency_numpy_array_inputs():
7778 assert isinstance (output_power , np .ndarray )
7879 assert output_power .shape == input_power .shape
7980
81+
8082def test_simple_efficiency_vector_equals_scalar ():
8183 input_power = np .array ([200.0 , 600.0 , 900.0 ])
8284 no_load_loss = 0.005
@@ -95,4 +97,4 @@ def test_simple_efficiency_vector_equals_scalar():
9597 for p in input_power
9698 ])
9799
98- assert_allclose (vector_result , scalar_result )
100+ assert_allclose (vector_result , scalar_result )
You can’t perform that action at this time.
0 commit comments