Skip to content

Commit 36a337f

Browse files
Apply suggestions from code review
Co-authored-by: Kevin Anderson <kevin.anderso@gmail.com>
1 parent a2c9a44 commit 36a337f

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

pvlib/iotools/nasa_power.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,9 +54,9 @@ def get_nasa_power(latitude, longitude, start, end,
5454
* ``T2M``: Air temperature at 2 m [C]
5555
* ``WS10M``: Wind speed at 10 m [m/s]
5656
57-
community: str
57+
community: str, default 're'
5858
Can be one of the following depending on which parameters are of
59-
interest. The default is ``'re'``. Note that in many cases this choice
59+
interest. Note that in many cases this choice
6060
might affect the units of the parameter.
6161
6262
* ``'re'``: renewable energy
@@ -73,10 +73,9 @@ def get_nasa_power(latitude, longitude, start, end,
7373
The definable surface type to adjust the wind speed. For a list of the
7474
surface types see [4]_. If you provide a wind surface alias please
7575
include a site elevation with the request.
76-
map_variables: bool, optional
76+
map_variables: bool, default True
7777
When true, renames columns of the Dataframe to pvlib variable names
7878
where applicable. See variable :const:`VARIABLE_MAP`.
79-
The default is `True`.
8079
8180
Raises
8281
------

tests/iotools/test_nasa_power.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ def ghi_series(data_index):
2020
return pd.Series(data=ghi, index=data_index, name='ghi')
2121

2222

23+
@pytest.mark.remote_data
24+
@pytest.mark.flaky(reruns=RERUNS, reruns_delay=RERUNS_DELAY)
2325
def test_get_nasa_power(data_index, ghi_series):
2426
data, meta = pvlib.iotools.get_nasa_power(latitude=44.76,
2527
longitude=7.64,

0 commit comments

Comments
 (0)