Skip to content

Commit

Permalink
Reformat code
Browse files Browse the repository at this point in the history
  • Loading branch information
genisott committed Nov 28, 2024
1 parent 08783cb commit 34d93c7
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/models/test_thermal_model.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,9 @@ def example_model_2_conductors(example_span_2_conductors, example_weather_a):
return linerate.Cigre601(example_span_2_conductors, example_weather_a, np.datetime64("2016-06-10 11:00"))

def test_compute_conductor_temperature(example_model_1_conductors, example_model_2_conductors):

# Check that the ampacity of a span with two conductors is divided when computing the conductor temperature.
current_1_conductor = 1000
current_2_conductors = current_1_conductor * 2
# The temperature should stay the same
assert example_model_1_conductors.compute_conductor_temperature(current_1_conductor) == example_model_2_conductors.compute_conductor_temperature(current_2_conductors)

assert (example_model_1_conductors.compute_conductor_temperature(current_1_conductor) ==
example_model_2_conductors.compute_conductor_temperature(current_2_conductors))

0 comments on commit 34d93c7

Please sign in to comment.