Skip to content

Commit 85e0e00

Browse files
authored
reduce documentation build warnings (#210)
* pin doc env versions to rtd versions * fix inline literal warning * fix duplicate index warnings * update whatsnew
1 parent 675454f commit 85e0e00

File tree

5 files changed

+24
-17
lines changed

5 files changed

+24
-17
lines changed

docs/environment.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,18 @@
1-
name: pvlib
1+
name: pvlibdocs
22
dependencies:
33
- python=2.7
4+
- mock # needed for local python 2.7 builds
45
- numpy
56
- scipy
67
- pandas
78
- pytz
89
- ephem
910
- numba
1011
- ipython=4.0.1
11-
- sphinx
12+
- ipywidgets
1213
- numpydoc
1314
- matplotlib
14-
- seaborn
15+
- seaborn
16+
- sphinx=1.3.5 # same versions as rtd
17+
- sphinx_rtd_theme=0.1.7
18+
- docutils=0.12

docs/sphinx/source/classes.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,39 +17,45 @@ Location
1717
:members:
1818
:undoc-members:
1919
:show-inheritance:
20+
:noindex:
2021

2122
PVSystem
2223
--------
2324
.. autoclass:: pvlib.pvsystem.PVSystem
2425
:members:
2526
:undoc-members:
2627
:show-inheritance:
28+
:noindex:
2729

2830
ModelChain
2931
----------
3032
.. autoclass:: pvlib.modelchain.ModelChain
3133
:members:
3234
:undoc-members:
3335
:show-inheritance:
36+
:noindex:
3437

3538
LocalizedPVSystem
3639
-----------------
3740
.. autoclass:: pvlib.pvsystem.LocalizedPVSystem
3841
:members:
3942
:undoc-members:
4043
:show-inheritance:
44+
:noindex:
4145

4246
SingleAxisTracker
4347
-----------------
4448
.. autoclass:: pvlib.tracking.SingleAxisTracker
4549
:members:
4650
:undoc-members:
4751
:show-inheritance:
52+
:noindex:
4853

4954
LocalizedSingleAxisTracker
5055
--------------------------
5156
.. autoclass:: pvlib.tracking.LocalizedSingleAxisTracker
5257
:members:
5358
:undoc-members:
5459
:show-inheritance:
60+
:noindex:
5561

docs/sphinx/source/index.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ of:
4646
modelling package,” in 40th IEEE Photovoltaic Specialist
4747
Conference, 2014.
4848
(`paper
49-
<http://energy.sandia.gov/wp/wp-content/gallery/uploads/PV_LIB_Python_final_SAND2014-18444C.pdf>`_)
49+
<http://energy.sandia.gov/wp/wp-content/gallery/uploads/PV_LIB_Python_final_SAND2014-18444C.pdf>`__)
5050
* W.F. Holmgren, R.W. Andrews, A.T. Lorenzo, and J.S. Stein,
5151
“PVLIB Python 2015,” in 42nd Photovoltaic Specialists Conference, 2015.
5252
(`paper
53-
<https://github.com/pvlib/pvsc2015/blob/master/pvlib_pvsc_42.pdf>`_ and
53+
<https://github.com/pvlib/pvsc2015/blob/master/pvlib_pvsc_42.pdf>`__ and
5454
the `notebook to reproduce the figures
5555
<http://nbviewer.ipython.org/github/pvlib/pvsc2015/blob/master/paper.ipynb>`_)
5656
* J.S. Stein, W.F. Holmgren, J. Forbess, and C.W. Hansen,

docs/sphinx/source/whatsnew/v0.4.0.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ Documentation
3333
~~~~~~~~~~~~~
3434

3535
* Added new terms to the variables documentation. (:issue:`195`)
36+
* Fix documentation build warnings. (:issue:`210`)
3637

3738

3839
Other

pvlib/irradiance.py

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -313,21 +313,22 @@ def beam_component(surface_tilt, surface_azimuth,
313313
return beam
314314

315315

316-
# ToDo: how to best structure this function? wholmgren 2014-11-03
317316
def total_irrad(surface_tilt, surface_azimuth,
318317
apparent_zenith, azimuth,
319318
dni, ghi, dhi, dni_extra=None, airmass=None,
320319
albedo=.25, surface_type=None,
321320
model='isotropic',
322321
model_perez='allsitescomposite1990', **kwargs):
323-
'''
322+
r"""
324323
Determine diffuse irradiance from the sky on a
325324
tilted surface.
326325
327326
.. math::
328327
329328
I_{tot} = I_{beam} + I_{sky} + I_{ground}
330329
330+
See the transposition function documentation for details.
331+
331332
Parameters
332333
----------
333334
surface_tilt : float or Series.
@@ -359,15 +360,10 @@ def total_irrad(surface_tilt, surface_azimuth,
359360
360361
Returns
361362
-------
362-
DataFrame with columns ``'poa_global', 'poa_direct',
363-
'poa_sky_diffuse', 'poa_ground_diffuse'``.
364-
365-
References
366-
----------
367-
[1] Loutzenhiser P.G. et. al. "Empirical validation of models to compute
368-
solar irradiance on inclined surfaces for building energy simulation"
369-
2007, Solar Energy vol. 81. pp. 254-267
370-
'''
363+
irradiance: DataFrame
364+
Contains columns ``'poa_global', 'poa_direct',
365+
'poa_sky_diffuse', 'poa_ground_diffuse'``.
366+
"""
371367

372368
pvl_logger.debug('planeofarray.total_irrad()')
373369

@@ -415,7 +411,7 @@ def total_irrad(surface_tilt, surface_azimuth,
415411

416412
# ToDo: keep this or not? wholmgren, 2014-11-03
417413
def globalinplane(aoi, dni, poa_sky_diffuse, poa_ground_diffuse):
418-
'''
414+
r'''
419415
Determine the three components on in-plane irradiance
420416
421417
Combines in-plane irradaince compoents from the chosen diffuse translation,

0 commit comments

Comments
 (0)