Skip to content

Commit 9906815

Browse files
committed
one more
1 parent 8f4da88 commit 9906815

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/iotools/test_ecmwf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,8 +53,8 @@ def test_get_era5(params, expected):
5353
def test_get_era5_map_variables(params, expected):
5454
df, meta = pvlib.iotools.get_era5(**params, map_variables=False)
5555
expected = expected.rename(columns={'temp_air': 't2m', 'ghi': 'ssrd'})
56-
expected['t2m'] += 273.15 # undo unit conversions
57-
expected['ssrd'] *= 3600
56+
expected['t2m'] -= 273.15 # apply unit conversions manually
57+
expected['ssrd'] /= 3600
5858
pd.testing.assert_frame_equal(df, expected, check_freq=False, atol=0.1)
5959
assert meta['longitude'] == -80.0
6060
assert meta['latitude'] == 40.0

0 commit comments

Comments
 (0)