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.
@@ -173,9 +173,6 @@ def get_nsrdb_psm4_aggregated(latitude, longitude, api_key, email,
173
173
latitude = ('%8.4f' % latitude ).strip ()
174
174
# TODO: make format_WKT(object_type, *args) in tools.py
175
175
176
- # convert to string to accomodate integer years being passed in
177
- year = str (year )
178
-
179
176
# convert pvlib names in parameters to PSM4 convention
180
177
parameters = [REQUEST_VARIABLE_MAP .get (a , a ) for a in parameters ]
181
178
@@ -314,9 +311,6 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, year='tmy',
314
311
latitude = ('%8.4f' % latitude ).strip ()
315
312
# TODO: make format_WKT(object_type, *args) in tools.py
316
313
317
- # convert to string to accomodate integer years being passed in
318
- year = str (year )
319
-
320
314
# convert pvlib names in parameters to PSM4 convention
321
315
parameters = [REQUEST_VARIABLE_MAP .get (a , a ) for a in parameters ]
322
316
@@ -354,7 +348,7 @@ def get_nsrdb_psm4_tmy(latitude, longitude, api_key, email, year='tmy',
354
348
return read_nsrdb_psm4 (fbuf , map_variables )
355
349
356
350
357
- def get_nsrdb_psm4_conus (latitude , longitude , api_key , email , year = '2023' ,
351
+ def get_nsrdb_psm4_conus (latitude , longitude , api_key , email , year ,
358
352
time_step = 60 , parameters = PARAMETERS , leap_day = True ,
359
353
full_name = PVLIB_PYTHON , affiliation = PVLIB_PYTHON ,
360
354
utc = False , map_variables = True , url = None , timeout = 30 ):
@@ -376,7 +370,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, year='2023',
376
370
email : str
377
371
NREL API uses this to automatically communicate messages back
378
372
to the user only if necessary
379
- year : str, default '2023'
373
+ year : int or str
380
374
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
381
375
allowed values update periodically, so consult the NSRDB reference
382
376
below for the current set of options. Called ``names`` in NSRDB API.
@@ -453,9 +447,6 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, year='2023',
453
447
latitude = ('%8.4f' % latitude ).strip ()
454
448
# TODO: make format_WKT(object_type, *args) in tools.py
455
449
456
- # convert to string to accomodate integer years being passed in
457
- year = str (year )
458
-
459
450
# convert pvlib names in parameters to PSM4 convention
460
451
parameters = [REQUEST_VARIABLE_MAP .get (a , a ) for a in parameters ]
461
452
@@ -494,7 +485,7 @@ def get_nsrdb_psm4_conus(latitude, longitude, api_key, email, year='2023',
494
485
495
486
496
487
def get_nsrdb_psm4_full_disc (latitude , longitude , api_key , email ,
497
- year = '2023' , time_step = 60 ,
488
+ year , time_step = 60 ,
498
489
parameters = PARAMETERS , leap_day = True ,
499
490
full_name = PVLIB_PYTHON ,
500
491
affiliation = PVLIB_PYTHON , utc = False ,
@@ -517,7 +508,7 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
517
508
email : str
518
509
NREL API uses this to automatically communicate messages back
519
510
to the user only if necessary
520
- year : str, default '2023'
511
+ year : int or str
521
512
PSM4 API parameter specifing year (e.g. ``2023``) to download. The
522
513
allowed values update periodically, so consult the NSRDB reference
523
514
below for the current set of options. Called ``names`` in NSRDB API.
@@ -595,9 +586,6 @@ def get_nsrdb_psm4_full_disc(latitude, longitude, api_key, email,
595
586
latitude = ('%8.4f' % latitude ).strip ()
596
587
# TODO: make format_WKT(object_type, *args) in tools.py
597
588
598
- # convert to string to accomodate integer years being passed in
599
- year = str (year )
600
-
601
589
# convert pvlib names in parameters to PSM4 convention
602
590
parameters = [REQUEST_VARIABLE_MAP .get (a , a ) for a in parameters ]
603
591
0 commit comments