Skip to content

Commit 1242b48

Browse files
committed
Switch ME to MS
1 parent 05fc1d1 commit 1242b48

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

pvlib/iotools/bsrn.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@ def get_bsrn(station, start, end, username, password,
160160

161161
# Generate list files to download based on start/end (SSSMMYY.dat.gz)
162162
filenames = pd.date_range(
163-
start, end.replace(day=1) + pd.DateOffset(months=1), freq='1ME')\
163+
start, end.replace(day=1) + pd.DateOffset(months=1), freq='1MS')\
164164
.strftime(f"{station}%m%y.dat.gz").tolist()
165165

166166
# Create FTP connection

pvlib/iotools/srml.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ def get_srml(station, start, end, filetype='PO', map_variables=True,
237237

238238
# Generate list of months
239239
months = pd.date_range(
240-
start, end.replace(day=1) + pd.DateOffset(months=1), freq='1ME')
240+
start, end.replace(day=1) + pd.DateOffset(months=1), freq='1MS')
241241
months_str = months.strftime('%y%m')
242242

243243
# Generate list of filenames

pvlib/tests/iotools/test_sodapro.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
index_verbose = pd.date_range('2020-06-01 12', periods=4, freq='1min',
2121
tz='UTC')
22-
index_monthly = pd.date_range('2020-01-01', periods=4, freq='1ME')
22+
index_monthly = pd.date_range('2020-01-01', periods=4, freq='1MS')
2323

2424

2525
dtypes_mcclear_verbose = [

pvlib/tests/test_clearsky.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,7 @@ def test_lookup_linke_turbidity_nointerp():
225225

226226
def test_lookup_linke_turbidity_months():
227227
times = pd.date_range(start='2014-04-01', end='2014-07-01',
228-
freq='1ME', tz='America/Phoenix')
228+
freq='1MS', tz='America/Phoenix')
229229
expected = pd.Series(
230230
np.array([2.89918032787, 2.97540983607, 3.19672131148]), index=times
231231
)
@@ -235,7 +235,7 @@ def test_lookup_linke_turbidity_months():
235235

236236
def test_lookup_linke_turbidity_months_leapyear():
237237
times = pd.date_range(start='2016-04-01', end='2016-07-01',
238-
freq='1ME', tz='America/Phoenix')
238+
freq='1MS', tz='America/Phoenix')
239239
expected = pd.Series(
240240
np.array([2.89918032787, 2.97540983607, 3.19672131148]), index=times
241241
)
@@ -245,14 +245,14 @@ def test_lookup_linke_turbidity_months_leapyear():
245245

246246
def test_lookup_linke_turbidity_nointerp_months():
247247
times = pd.date_range(start='2014-04-10', end='2014-07-10',
248-
freq='1ME', tz='America/Phoenix')
248+
freq='1MS', tz='America/Phoenix')
249249
expected = pd.Series(np.array([2.85, 2.95, 3.]), index=times)
250250
out = clearsky.lookup_linke_turbidity(times, 32.125, -110.875,
251251
interp_turbidity=False)
252252
assert_series_equal(expected, out)
253253
# changing the dates shouldn't matter if interp=False
254254
times = pd.date_range(start='2014-04-05', end='2014-07-05',
255-
freq='1ME', tz='America/Phoenix')
255+
freq='1MS', tz='America/Phoenix')
256256
out = clearsky.lookup_linke_turbidity(times, 32.125, -110.875,
257257
interp_turbidity=False)
258258
assert_series_equal(expected, out)

0 commit comments

Comments
 (0)