-
-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1d5052c
commit 8f134e8
Showing
2 changed files
with
70 additions
and
53 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
from quartz_solar_forecast.eval.nwp import get_nwp | ||
import pandas as pd | ||
|
||
|
||
# can take ~ 1 minute to run | ||
def test_get_nwp(): | ||
# make test dataset file | ||
test_set_df = pd.DataFrame( | ||
[ | ||
{ | ||
"timestamp": pd.Timestamp("2021-01-26 01:15:00"), | ||
"latitude": 51.5, | ||
"longitude": 0.0, | ||
"pv_id": 0, | ||
} | ||
] | ||
) | ||
|
||
# Collect NWP data from Hugging Face, ICON. (Peter) | ||
_ = get_nwp(test_set_df) |