8000 add pvgis to iotools by mikofski · Pull Request #845 · pvlib/pvlib-python · GitHub
[go: up one dir, main page]

Skip to content

add pvgis to iotools #845

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 20 commits into from
Jan 10, 2020
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
check each column of output separately
  • Loading branch information
mikofski committed Jan 7, 2020
commit ef8594b0887f8bb931088d0f24e0794972d89f82
4 changes: 3 additions & 1 deletion pvlib/test/test_pvgis.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,9 @@
def test_get_pvgis_tmy():
data, months_selected, inputs, meta = get_pvgis_tmy(45, 8)
expected = pd.read_csv(DATA / 'pvgis_tmy_test.dat', index_col='time(UTC)')
assert np.allclose(data, expected)
# check each column of output separately
for outvar in META['outputs']['tmy_hourly']['variables'].keys():
assert np.allclose(data[outvar], expected[outvar], equal_nan=True)
assert np.allclose(
[_['month'] for _ in months_selected], np.arange(1, 13, 1))
assert np.allclose([_['year'] for _ in months_selected], MONTHS_SELECTED)
Expand Down
0