|
62 | 62 |
|
63 | 63 |
|
64 | 64 | def get_psm3(latitude, longitude, api_key, email, names='tmy', interval=60, |
65 | | - attributes=ATTRIBUTES, leap_day=None, full_name=PVLIB_PYTHON, |
| 65 | + attributes=ATTRIBUTES, leap_day=True, full_name=PVLIB_PYTHON, |
66 | 66 | affiliation=PVLIB_PYTHON, map_variables=None, url=None, |
67 | 67 | timeout=30): |
68 | 68 | """ |
@@ -105,7 +105,7 @@ def get_psm3(latitude, longitude, api_key, email, names='tmy', interval=60, |
105 | 105 | for lists of available fields. Alternatively, pvlib names may also be |
106 | 106 | used (e.g. 'ghi' rather than 'GHI'); see :const:`REQUEST_VARIABLE_MAP`. |
107 | 107 | To retrieve all available fields, set ``attributes=[]``. |
108 | | - leap_day : boolean, default False |
| 108 | + leap_day : boolean, default : True |
109 | 109 | include leap day in the results. Only used for single-year requests |
110 | 110 | (i.e., it is ignored for tmy/tgy/tdy requests). |
111 | 111 | full_name : str, default 'pvlib python' |
@@ -179,14 +179,6 @@ def get_psm3(latitude, longitude, api_key, email, names='tmy', interval=60, |
179 | 179 | # convert pvlib names in attributes to psm3 convention |
180 | 180 | attributes = [REQUEST_VARIABLE_MAP.get(a, a) for a in attributes] |
181 | 181 |
|
182 | | - if (leap_day is None) and (not names.startswith('t')): |
183 | | - warnings.warn( |
184 | | - 'The ``get_psm3`` function will default to leap_day=True ' |
185 | | - 'starting in pvlib 0.11.0. Specify leap_day=True ' |
186 | | - 'to enable this behavior now, or specify leap_day=False ' |
187 | | - 'to hide this warning.', pvlibDeprecationWarning) |
188 | | - leap_day = False |
189 | | - |
190 | 182 | # required query-string parameters for request to PSM3 API |
191 | 183 | params = { |
192 | 184 | 'api_key': api_key, |
|
0 commit comments