diff --git a/docs/sphinx/source/api.rst b/docs/sphinx/source/api.rst index 2716c7fbe6..846a8f7701 100644 --- a/docs/sphinx/source/api.rst +++ b/docs/sphinx/source/api.rst @@ -90,7 +90,7 @@ calculations. solarposition.equation_of_time_spencer71 solarposition.equation_of_time_pvcdrom solarposition.hour_angle - solarposition.sunrise_sunset_transit_geometric + solarposition.sun_rise_set_transit_geometric Clear sky diff --git a/docs/sphinx/source/conf.py b/docs/sphinx/source/conf.py index 959f395179..b162eee4f4 100644 --- a/docs/sphinx/source/conf.py +++ b/docs/sphinx/source/conf.py @@ -313,8 +313,10 @@ def setup(app): # Example configuration for intersphinx: refer to the Python standard library. intersphinx_mapping = { 'python': ('https://docs.python.org/3.7/', None), - 'pandas': ('http://pandas.pydata.org/pandas-docs/stable/', None), - 'numpy': ('http://docs.scipy.org/doc/numpy/', None), + 'pandas': ('https://pandas.pydata.org/pandas-docs/stable/', None), + 'numpy': ('https://docs.scipy.org/doc/numpy/', None), } nbsphinx_allow_errors = True + +ipython_warning_is_error = False diff --git a/docs/sphinx/source/forecasts.rst b/docs/sphinx/source/forecasts.rst index e17e2dba39..f959982e2c 100644 --- a/docs/sphinx/source/forecasts.rst +++ b/docs/sphinx/source/forecasts.rst @@ -414,6 +414,7 @@ Use the NDFD, among others, for forecasts at all time horizons. The NDFD is available for the United States. .. ipython:: python + :okexcept: model = NDFD() data = model.get_processed_data(latitude, longitude, start, end) diff --git a/docs/sphinx/source/modelchain.rst b/docs/sphinx/source/modelchain.rst index a1eea00ee9..f7e9d608ea 100644 --- a/docs/sphinx/source/modelchain.rst +++ b/docs/sphinx/source/modelchain.rst @@ -376,9 +376,7 @@ function if you wanted to. def pvusa(poa_global, wind_speed, temp_air, a, b, c, d): """ Calculates system power according to the PVUSA equation - P = I * (a + b*I + c*W + d*T) - where P is the output power, I is the plane of array irradiance, diff --git a/docs/sphinx/source/timetimezones.rst b/docs/sphinx/source/timetimezones.rst index de1935e33b..1b46c3fc56 100644 --- a/docs/sphinx/source/timetimezones.rst +++ b/docs/sphinx/source/timetimezones.rst @@ -272,7 +272,7 @@ Let's first examine how pvlib handles time when it imports a TMY3 file. # some gymnastics to find the example file pvlib_abspath = os.path.dirname(os.path.abspath(inspect.getfile(pvlib))) file_abspath = os.path.join(pvlib_abspath, 'data', '703165TY.csv') - tmy3_data, tmy3_metadata = pvlib.tmy.readtmy3(file_abspath) + tmy3_data, tmy3_metadata = pvlib.iotools.read_tmy3(file_abspath) tmy3_metadata diff --git a/docs/sphinx/source/whatsnew/v0.6.1.rst b/docs/sphinx/source/whatsnew/v0.6.1.rst index 5ab9de106b..b13165335f 100644 --- a/docs/sphinx/source/whatsnew/v0.6.1.rst +++ b/docs/sphinx/source/whatsnew/v0.6.1.rst @@ -1,6 +1,6 @@ .. _whatsnew_0601: -v0.6.1 (EST November, 2018) +v0.6.1 (EST December, 2018) --------------------------- This is a minor release. We recommend all users of v0.6.0 upgrade to this @@ -19,11 +19,14 @@ API Changes they will be removed in v0.7. Use the new :py:func:`pvlib.iotools.read_tmy2` and :py:func:`pvlib.iotools.read_tmy3` instead. (:issue:`261`) * Added keyword argument ``horizon`` to :func:`~pvlib.solarposition.pyephem` - and :func:`~pvlib.solarposition.calc_time` with default value ``'+0:00'`` -* Changed key names for `components` returned from :py:func:`pvlib.clearsky.detect_clearsky` -* Changed function name from :py:func:`pvlib.solarposition.get_rise_set_transit` (deprecated) - to :py:func:`pvlib.solarposition.sun_rise_set_transit_spa. `sun_rise_set_transit_spa` - requires time input to be localized to the specified latitude/longitude. (:issue:`316') + and :func:`~pvlib.solarposition.calc_time` with default value ``'+0:00'``. + (:issue:`588`) +* Changed key names for `components` returned from + :py:func:`pvlib.clearsky.detect_clearsky`. (:issue:`596`) +* Changed function name from `pvlib.solarposition.get_rise_set_transit` + (deprecated) to :py:func:`pvlib.solarposition.sun_rise_set_transit_spa. + `sun_rise_set_transit_spa` requires time input to be localized to the + specified latitude/longitude. (:issue:`316`) Enhancements @@ -43,7 +46,7 @@ Enhancements isobaric values and modeled wind speed instead of inferring from gust. (:issue:`604`) * Change :py:func:`pvlib.pvsystem.sapm_spectral_loss` to avoid numpy warning. -* Add warning message when :py:func:`pvlib.spa` is reloaded. +* Add warning message when :py:func:`pvlib.spa` is reloaded. (:issue:`401`) * Add option for :py:func:`pvlib.irradiance.disc` to use relative airmass by supplying `pressure=None`. (:issue:`449`) @@ -51,10 +54,12 @@ Enhancements Bug fixes ~~~~~~~~~ * Fix when building documentation using Matplotlib 3.0 or greater. -* `~pvlib.spa.calculate_deltat`: Fix constant coefficient of the polynomial expression for years >= 1860 - and < 1900, fix year 2050 which was returning 0. +* `~pvlib.spa.calculate_deltat`: Fix constant coefficient of the polynomial + expression for years >= 1860 and < 1900, fix year 2050 which was + returning 0. (:issue:`600`) * Fix and improve :func:`~pvlib.solarposition.hour_angle` (:issue:`598`) * Fix error in :func:`pvlib.clearsky.detect_clearsky` (:issue:`506`) +* Fix documentation errors when using IPython >= 7.0. * Fix error in :func:`pvlib.modelchain.ModelChain.infer_spectral_model` (:issue:`619`) diff --git a/pvlib/iotools/midc.py b/pvlib/iotools/midc.py index 1d68278fd5..35c48e8d9a 100644 --- a/pvlib/iotools/midc.py +++ b/pvlib/iotools/midc.py @@ -185,8 +185,9 @@ def read_midc_raw_data_from_nrel(site, start, end): Notes ----- Requests spanning an instrumentation change will yield an error. See the - MIDC raw data api page here_ for more details and considerations. - .. _here: https://midcdmz.nrel.gov/apps/data_api_doc.pl?_idtextlist + MIDC raw data api page + `here `_ + for more details and considerations. """ args = {'site': site, 'begin': start.strftime('%Y%m%d'), diff --git a/pvlib/solarposition.py b/pvlib/solarposition.py index e4d95fcf3e..e2dc536936 100644 --- a/pvlib/solarposition.py +++ b/pvlib/solarposition.py @@ -387,7 +387,7 @@ def sun_rise_set_transit_spa(times, latitude, longitude, how='numpy', using times.year and times.month from pandas.DatetimeIndex. For most simulations specifing delta_t is sufficient. Difference between terrestrial time and UT1. - *Note: delta_t = None will break code using nrel_numba, + delta_t = None will break code using nrel_numba, this will be fixed in a future version. By default, use USNO historical data and predictions how : str, optional, default 'numpy' diff --git a/pvlib/tmy.py b/pvlib/tmy.py index a9ea8164f9..6299d52b85 100644 --- a/pvlib/tmy.py +++ b/pvlib/tmy.py @@ -9,5 +9,5 @@ readtmy2 = deprecated('0.6.1', alternative='iotools.read_tmy2', name='readtmy2', removal='0.7')(read_tmy2) -readtmy3 = deprecated('0.6.1', alternative='iotools.read_tmy2', +readtmy3 = deprecated('0.6.1', alternative='iotools.read_tmy3', name='readtmy3', removal='0.7')(read_tmy3)