Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
peterdudfield committed Dec 12, 2023
1 parent 53c2e1c commit d9f1adb
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion quartz_solar_forecast/dataset/testset.csv
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
pv_id,timestamp
pv_id,datetime
8215,2021-01-26 01:15:00
8215,2021-01-30 16:30:00
8215,2021-01-18 19:30:00
Expand Down
2 changes: 1 addition & 1 deletion tests/data/test_make_test_set.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,4 +15,4 @@ def test_make_test_set():
test_set = pd.read_csv(output_file)
assert len(test_set) == 50 * 50
# we can check this as we have set the seed
assert test_set.iloc[0].datetime == "2021-01-26 01:15:00"
assert test_set.iloc[0].datetime == "2021-01-27 07:00:00"
2 changes: 1 addition & 1 deletion tests/eval/test_metrics.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ def test_metrics():
columns=[
"id",
"timestamp",
"horizon_hours",
"horizon_hour",
"forecast_power",
"generation_power",
], data=np.random.random((100,5)))
Expand Down
2 changes: 1 addition & 1 deletion tests/eval/test_pv.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@


# can take ~ 1 minute to run
def test_get_nwp():
def test_get_pv():
# make test dataset file
test_set_df = pd.DataFrame(
[
Expand Down

0 comments on commit d9f1adb

Please sign in to comment.