Skip to content

Commit

Permalink
pep8 formatting adjustments
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Godbehere committed Sep 20, 2024
1 parent 171e32e commit c275a84
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions pvlib/tests/test_clearsky.py
Original file line number Diff line number Diff line change
Expand Up @@ -675,20 +675,20 @@ def test_detect_clearsky_missing_index(detect_clearsky_data):
def test_detect_clearsky_not_enough_data(detect_clearsky_data):
expected, cs = detect_clearsky_data
with pytest.raises(ValueError, match='have at least'):
clearsky.detect_clearsky(expected['GHI'], cs['ghi'], window_length=60)
clearsky.detect_clearsky(expected['GHI'], cs['ghi'], window_length=60)


@pytest.mark.parametrize("window_length", [5, 10, 15, 20, 25])
def test_detect_clearsky_optimizer_not_failed(
detect_clearsky_data,
window_length
):
detect_clearsky_data, window_length
):
expected, cs = detect_clearsky_data
clear_samples = clearsky.detect_clearsky(
expected["GHI"], cs["ghi"], window_length=window_length
)
assert isinstance(clear_samples, pd.Series)


@pytest.fixture
def detect_clearsky_helper_data():
samples_per_window = 3
Expand Down

0 comments on commit c275a84

Please sign in to comment.