72
72
73
73
74
74
def get_nsrdb_psm4_aggregated (latitude , longitude , api_key , email ,
75
- year = '2023' , time_step = 60 ,
75
+ year , time_step = 60 ,
76
76
parameters = PARAMETERS , leap_day = True ,
77
77
full_name = PVLIB_PYTHON ,
78
78
affiliation = PVLIB_PYTHON ,
@@ -96,7 +96,7 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
96
96
email : str
97
97
NREL API uses this to automatically communicate messages back
98
98
to the user only if necessary
99
- year : str, default '2023'
99
+ year : int or str
100
100
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
101
101
allowed values update periodically, so consult the NSRDB reference
102
102
below for the current set of options. Called ``names`` in NSRDB API.
@@ -314,9 +314,6 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, year='tmy',
314
314
latitude = ('%8.4f' % latitude ).strip ()
315
315
# TODO: make format_WKT(object_type, *args) in tools.py
316
316
317
- # convert to string to accomodate integer years being passed in
318
- year = str (year )
319
-
320
317
# convert pvlib names in parameters to PSM4 convention
321
318
parameters = [REQUEST_VARIABLE_MAP .get (a , a ) for a in parameters ]
322
319
@@ -354,7 +351,7 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, year='tmy',
354
351
return read_nsrdb_psm4 (fbuf , map_variables )
355
352
356
353
357
- def get_nsrdb_psm4_conus (latitude , longitude , api_key , email , year = '2023' ,
354
+ def get_nsrdb_psm4_conus (latitude , longitude , api_key , email , year ,
358
355
time_step = 60 , parameters = PARAMETERS , leap_day = True ,
359
356
full_name = PVLIB_PYTHON , affiliation = PVLIB_PYTHON ,
360
357
utc = False , map_variables = True , url = None , timeout = 30 ):
@@ -376,7 +373,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, year='2023',
376
373
email : str
377
374
NREL API uses this to automatically communicate messages back
378
375
to the user only if necessary
379
- year : str, default '2023'
376
+ year : int or str
380
377
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
381
378
allowed values update periodically, so consult the NSRDB reference
382
379
below for the current set of options. Called ``names`` in NSRDB API.
@@ -494,7 +491,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, year='2023',
494
491
495
492
496
493
def get_nsrdb_psm4_full_disc (latitude , longitude , api_key , email ,
497
- year = '2023' , time_step = 60 ,
494
+ year , time_step = 60 ,
498
495
parameters = PARAMETERS , leap_day = True ,
499
496
full_name = PVLIB_PYTHON ,
500
497
affiliation = PVLIB_PYTHON , utc = False ,
@@ -517,7 +514,7 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
517
514
email : str
518
515
NREL API uses this to automatically communicate messages back
519
516
to the user only if necessary
520
- year : str, default '2023'
517
+ year : int or str
521
518
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
522
519
allowed values update periodically, so consult the NSRDB reference
523
520
below for the current set of options. Called ``names`` in NSRDB API.
0 commit comments