Skip to content

Commit 247b31f

Browse files
authored
Update test_meteonorm expected values for new year (#2676)
1 parent 60896b1 commit 247b31f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

tests/iotools/test_meteonorm.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def expected_meta():
5353
@pytest.fixture
5454
def expected_meteonorm_index():
5555
expected_meteonorm_index = \
56-
pd.date_range('2023-01-01', '2023-12-31 23:59', freq='1h', tz='UTC') \
56+
pd.date_range('2025-01-01', '2025-12-31 23:59', freq='1h', tz='UTC') \
5757
+ pd.Timedelta(minutes=30)
5858
expected_meteonorm_index.freq = None
5959
return expected_meteonorm_index
@@ -71,13 +71,13 @@ def expected_meteonorm_data():
7171
[0.0, 0.0],
7272
[0.0, 0.0],
7373
[0.0, 0.0],
74-
[2.5, 2.68],
75-
[77.5, 77.48],
76-
[165.0, 164.99],
77-
[210.75, 210.75],
78-
[221.0, 220.99],
74+
[3.75, 3.74],
75+
[57.25, 57.20],
76+
[149.0, 148.96],
77+
[242.25, 242.24],
78+
[228.0, 227.98],
7979
]
80-
index = pd.date_range('2023-01-01 00:30', periods=12, freq='1h', tz='UTC')
80+
index = pd.date_range('2025-01-01 00:30', periods=12, freq='1h', tz='UTC')
8181
index.freq = None
8282
expected = pd.DataFrame(expected, index=index, columns=columns)
8383
return expected
@@ -116,7 +116,7 @@ def test_get_meteonorm_training(
116116
expected_meteonorm_data):
117117
data, meta = pvlib.iotools.get_meteonorm_observation_training(
118118
latitude=50, longitude=10,
119-
start='2023-01-01', end='2024-01-01',
119+
start='2025-01-01', end='2026-01-01',
120120
api_key=demo_api_key,
121121
parameters=['ghi', 'global_horizontal_irradiance_with_shading'],
122122
time_step='1h',

0 commit comments

Comments
 (0)