8000 remove line numbers from ipython directives · dacoex/pvlib-python@944c294 · GitHub
[go: up one dir, main page]

Skip to content

Commit 944c294

Browse files
committed
remove line numbers from ipython directives
1 parent 3000210 commit 944c294

File tree

1 file changed

+10
-9
lines changed

1 file changed

+10
-9
lines changed

pvlib/irradiance.py

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -91,15 +91,16 @@ def extraradiation(datetime_or_doy, solar_constant=1366.1, method='spencer'):
9191
Examples
9292
--------
9393
.. ipython::
94-
In [1]: times = pd.date_range('2014-01-01', '2015-01-01', freq='1D')
95-
In [2]: spencer = pd.Series(pvlib.irradiance.extraradiation(times, method='spencer'), times)
96-
asce = pd.Series(pvlib.irradiance.extraradiation(times, method='asce'), times)
97-
ephem = pvlib.irradiance.extraradiation(times, method='pyephem') # approx 100x slower than the above.
98-
In [3]: spencer.plot(label='spencer')
99-
asce.plot(label='asce')
100-
ephem.plot(label='pyephem')
101-
plt.legend()
102-
plt.ylabel('Extraterrestrial radiation (W/m^2)')
94+
times = pd.date_range('2014-01-01', '2015-01-01', freq='1D')
95+
spencer = pd.Series(pvlib.irradiance.extraradiation(times, method='spencer'), times)
96+
asce = pd.Series(pvlib.irradiance.extraradiation(times, method='asce'), times)
97+
ephem = pvlib.irradiance.extraradiation(times, method='pyephem') # approx 100x slower than the above.
98+
spencer.plot(label='spencer')
99+
asce.plot(label='asce')
100+
ephem.plot(label='pyephem')
101+
plt.legend()
102+
@savefig extraradiation.png width=4in
103+
plt.ylabel('Extraterrestrial radiation (W/m^2)')
103104
"""
104105

105106
pvl_logger.debug('irradiance.extraradiation()')

0 commit comments

Comments
 (0)
0