Skip to content

Commit ac6fe82

Browse files
committed
and fix tests
1 parent a0aa2c8 commit ac6fe82

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/iotools/test_era5.py

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

0 commit comments

Comments
 (0)