Skip to content

Commit

Permalink
style: update black formatting for exponentiation (#264)
Browse files Browse the repository at this point in the history
  • Loading branch information
danielolsen authored Jan 31, 2022
1 parent 3883571 commit 87f3c36
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion prereise/gather/griddata/hifld/data_process/generators.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ def estimate_heat_rate_curve(
"""

def quadratic(x, a, b, c):
return a + b * x + c * x ** 2
return a + b * x + c * x**2

quadratic_coefficient_bounds = ([0] * 3, [float("inf")] * 3)
return_index = ["h0", "h1", "h2"]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -165,13 +165,13 @@ def test_estimate_branch_rating_lines():
assert rating == (
const.line_rating_surge_impedance_loading[345]
* const.line_rating_surge_impedance_coefficient
* 100 ** const.line_rating_surge_impedance_exponent
* 100**const.line_rating_surge_impedance_exponent
)
rating = estimate_branch_rating(branch.iloc[3], pd.Series())
assert rating == (
const.line_rating_surge_impedance_loading[500]
* const.line_rating_surge_impedance_coefficient
* 150 ** const.line_rating_surge_impedance_exponent
* 150**const.line_rating_surge_impedance_exponent
)


Expand Down

0 comments on commit 87f3c36

Please sign in to comment.