Skip to content
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion pvlib/iotools/era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ def _j_to_w(j):


def _m_to_cm(m):
return m / 100
return m * 100


UNITS = {
Expand Down
4 changes: 4 additions & 0 deletions tests/iotools/test_era5.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,3 +92,7 @@
match = 'Request timed out. Try increasing'
with pytest.raises(requests.exceptions.Timeout, match=match):
df, meta = pvlib.iotools.get_era5(**params, timeout=1)

def test_m_to_cm():

Check failure on line 96 in tests/iotools/test_era5.py

View workflow job for this annotation

GitHub Actions / flake8-linter

E302 expected 2 blank lines, found 1
from pvlib.iotools.era5 import _m_to_cm
assert _m_to_cm(0.01) == 1 # 0.01 m = 1 cm

Check failure on line 98 in tests/iotools/test_era5.py

View workflow job for this annotation

GitHub Actions / flake8-linter

W292 no newline at end of file
Loading