diff --git a/docs/sphinx/source/whatsnew/v0.13.1.rst b/docs/sphinx/source/whatsnew/v0.13.1.rst index 9c50d00bbb..de7e17bd2a 100644 --- a/docs/sphinx/source/whatsnew/v0.13.1.rst +++ b/docs/sphinx/source/whatsnew/v0.13.1.rst @@ -10,6 +10,8 @@ Breaking Changes Deprecations ~~~~~~~~~~~~ +* Deprecate :py:func:`~pvlib.modelchain.get_orientation`. Removal scheduled for + ``v0.14.0``. (:pull:`2691`) * Rename parameter name ``aparent_azimuth`` to ``solar_azimuth`` in :py:func:`~pvlib.tracking.singleaxis`. (:issue:`2479`, :pull:`2480`) @@ -45,3 +47,4 @@ Maintenance Contributors ~~~~~~~~~~~~ * Elijah Passmore (:ghuser:`eljpsm`) +* Rajiv Daxini (:ghuser:`RDaxini`) \ No newline at end of file diff --git a/pvlib/modelchain.py b/pvlib/modelchain.py index 52732ebaeb..09e4434e84 100644 --- a/pvlib/modelchain.py +++ b/pvlib/modelchain.py @@ -18,6 +18,8 @@ from pvlib.pvsystem import _DC_MODEL_PARAMS from pvlib.tools import _build_kwargs +from pvlib._deprecation import deprecated + # keys that are used to detect input data and assign data to appropriate # ModelChain attribute # for ModelChain.weather @@ -59,6 +61,13 @@ ) +@deprecated( + since="0.13.1", + removal="", + name="pvlib.modelchain.get_orientation", + alternative=None, + addendum=None, +) def get_orientation(strategy, **kwargs): """ Determine a PV system's surface tilt and surface azimuth