Skip to content

Commit

Permalink
update to remove the rounding function as we don't use it anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
kperrynrel committed Aug 14, 2023
1 parent 849a7a1 commit 0c00753
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions pvanalytics/tests/quality/test_time.py
Original file line number Diff line number Diff line change
Expand Up @@ -485,26 +485,3 @@ def test_dst_dates(timezone, expected_dates):
time.dst_dates(index.tz_localize(None), timezone),
expected.tz_localize(None)
)


# def test_rounding():
# xs = pd.Series(
# [-10, 10, -16, 16, -28, 28, -30, 30, -8, 8, -7, 7, -3, 3, 0]
# )
# assert_series_equal(
# time._round_multiple(xs, 15),
# pd.Series([-15, 15, -15, 15, -30, 30, -30, 30, -15, 15, 0, 0, 0, 0,
# 0])
# )
# assert_series_equal(
# time._round_multiple(xs, 15, up_from=9),
# pd.Series([-15, 15, -15, 15, -30, 30, -30, 30, 0, 0, 0, 0, 0, 0, 0])
# )
# assert_series_equal(
# time._round_multiple(xs, 15, up_from=15),
# pd.Series([0, 0, -15, 15, -15, 15, -30, 30, 0, 0, 0, 0, 0, 0, 0])
# )
# assert_series_equal(
# time._round_multiple(xs, 30),
# pd.Series([0, 0, -30, 30, -30, 30, -30, 30, 0, 0, 0, 0, 0, 0, 0])
# )

0 comments on commit 0c00753

Please sign in to comment.