Skip to content

Commit 1bbe7b0

Browse files
committed
replace time_period with time_step
1 parent 2301778 commit 1bbe7b0

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

pvlib/iotools/psm4.py

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373

7474

7575
def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
76-
names='2023', time_period=60,
76+
names='2023', time_step=60,
7777
parameters=PARAMETERS, leap_day=True,
7878
full_name=PVLIB_PYTHON,
7979
affiliation=PVLIB_PYTHON,
@@ -101,8 +101,8 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
101101
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
102102
allowed values update periodically, so consult the NSRDB reference
103103
below for the current set of options.
104-
time_period : int, {60, 30}
105-
time period in minutes, must be 60 or 30 for PSM4 Aggregated. Called
104+
time_step : int, {60, 30}
105+
time step in minutes, must be 60 or 30 for PSM4 Aggregated. Called
106106
``interval`` in NSRDB API.
107107
parameters : list of str, optional
108108
meteorological fields to fetch. If not specified, defaults to
@@ -197,7 +197,7 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
197197
'attributes': ','.join(parameters),
198198
'leap_day': str(leap_day).lower(),
199199
'utc': str(utc).lower(),
200-
'interval': time_period
200+
'interval': time_step
201201
}
202202
# request CSV download from NREL PSM4
203203
if url is None:
@@ -219,7 +219,7 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
219219

220220

221221
def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
222-
time_period=60, parameters=PARAMETERS, leap_day=False,
222+
time_step=60, parameters=PARAMETERS, leap_day=False,
223223
full_name=PVLIB_PYTHON, affiliation=PVLIB_PYTHON,
224224
utc=False, map_variables=True, url=None, timeout=30):
225225
"""
@@ -244,8 +244,8 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
244244
PSM4 API parameter specifing TMY variant to download (e.g. ``'tmy'``
245245
or ``'tgy-2022'``). The allowed values update periodically, so
246246
consult the NSRDB references below for the current set of options.
247-
time_period : int, {60}
248-
time period in minutes. Must be 60 for typical year requests. Called
247+
time_step : int, {60}
248+
time step in minutes. Must be 60 for typical year requests. Called
249249
``interval`` in NSRDB API.
250250
parameters : list of str, optional
251251
meteorological fields to fetch. If not specified, defaults to
@@ -340,7 +340,7 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
340340
'attributes': ','.join(parameters),
341341
'leap_day': str(leap_day).lower(),
342342
'utc': str(utc).lower(),
343-
'interval': time_period
343+
'interval': time_step
344344
}
345345
# request CSV download from NREL PSM4
346346
if url is None:
@@ -362,7 +362,7 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, names='tmy',
362362

363363

364364
def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
365-
time_period=60, parameters=PARAMETERS, leap_day=True,
365+
time_step=60, parameters=PARAMETERS, leap_day=True,
366366
full_name=PVLIB_PYTHON, affiliation=PVLIB_PYTHON,
367367
utc=False, map_variables=True, url=None, timeout=30):
368368
"""
@@ -387,8 +387,8 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
387387
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
388388
allowed values update periodically, so consult the NSRDB reference
389389
below for the current set of options.
390-
time_period : int, {60, 5, 15, 30}
391-
time period in minutes. Called ``interval`` in NSRDB API.
390+
time_step : int, {60, 5, 15, 30}
391+
time step in minutes. Called ``interval`` in NSRDB API.
392392
parameters : list of str, optional
393393
meteorological fields to fetch. If not specified, defaults to
394394
``pvlib.iotools.psm4.PARAMETERS``. See reference [2]_ for a list of
@@ -482,7 +482,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
482482
'attributes': ','.join(parameters),
483483
'leap_day': str(leap_day).lower(),
484484
'utc': str(utc).lower(),
485-
'interval': time_period
485+
'interval': time_step
486486
}
487487
# request CSV download from NREL PSM4
488488
if url is None:
@@ -504,7 +504,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, names='2023',
504504

505505

506506
def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
507-
names='2023', time_period=60,
507+
names='2023', time_step=60,
508508
parameters=PARAMETERS, leap_day=True,
509509
full_name=PVLIB_PYTHON,
510510
affiliation=PVLIB_PYTHON, utc=False,
@@ -531,8 +531,8 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
531531
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
532532
allowed values update periodically, so consult the NSRDB reference
533533
below for the current set of options.
534-
time_period : int, {60, 10, 30}
535-
time period in minutes, must be 10, 30 or 60. Called ``interval`` in
534+
time_step : int, {60, 10, 30}
535+
time step in minutes, must be 10, 30 or 60. Called ``interval`` in
536536
NSRDB API.
537537
parameters : list of str, optional
538538
meteorological fields to fetch. If not specified, defaults to
@@ -627,7 +627,7 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
627627
'attributes': ','.join(parameters),
628628
'leap_day': str(leap_day).lower(),
629629
'utc': str(utc).lower(),
630-
'interval': time_period
630+
'interval': time_step
631631
}
632632
# request CSV download from NREL PSM4
633633
if url is None:

0 commit comments

Comments
 (0)