-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deprecate pvlib.forecast #1426
Merged
Merged
Deprecate pvlib.forecast #1426
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
27e4fb1
deprecate pvlib.forecast classes
kandersolar 6b69916
catch warnings in tests
kandersolar f61055f
add warning admonition to forecasts.rst
kandersolar 1bd8bab
whatsnew
kandersolar 6584f79
stickler
kandersolar 9891d0d
pin pytest < 7.1.0
kandersolar cbb2b49
pin pytest in the right place this time
kandersolar 62b3df7
more warning suppression in tests
kandersolar a652b93
unpin pytest
kandersolar 749097b
Update docs/sphinx/source/whatsnew/v0.9.1.rst
kandersolar 9d4f893
copy warning to reference/forecasting.rst
kandersolar File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -15,14 +15,23 @@ | |
from siphon.ncss import NCSS | ||
|
||
import warnings | ||
from pvlib._deprecation import deprecated | ||
|
||
|
||
warnings.warn( | ||
'The forecast module algorithms and features are highly experimental. ' | ||
'The API may change, the functionality may be consolidated into an io ' | ||
'module, or the module may be separated into its own package.') | ||
|
||
_forecast_deprecated = deprecated( | ||
since='0.9.1', | ||
removal='a future release', | ||
addendum='For details, see https://pvlib-python.readthedocs.io/en/stable/user_guide/forecasts.html' # noqa: E501 | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This URL is currently 404 but should work after 0.9.1 is released. |
||
) | ||
|
||
# don't decorate the base class to prevent the subclasses from showing | ||
# duplicate warnings: | ||
# @_forecast_deprecated | ||
class ForecastModel: | ||
""" | ||
An object for querying and holding forecast model information for | ||
|
@@ -684,6 +693,7 @@ def gust_to_speed(self, data, scaling=1/1.4): | |
return wind_speed | ||
|
||
|
||
@_forecast_deprecated | ||
class GFS(ForecastModel): | ||
""" | ||
Subclass of the ForecastModel class representing GFS | ||
|
@@ -785,6 +795,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs): | |
return data[self.output_variables] | ||
|
||
|
||
@_forecast_deprecated | ||
class HRRR_ESRL(ForecastModel): # noqa: N801 | ||
""" | ||
Subclass of the ForecastModel class representing | ||
|
@@ -875,6 +886,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs): | |
return data[self.output_variables] | ||
|
||
|
||
@_forecast_deprecated | ||
class NAM(ForecastModel): | ||
""" | ||
Subclass of the ForecastModel class representing NAM | ||
|
@@ -956,6 +968,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs): | |
return data[self.output_variables] | ||
|
||
|
||
@_forecast_deprecated | ||
class HRRR(ForecastModel): | ||
""" | ||
Subclass of the ForecastModel class representing HRRR | ||
|
@@ -1044,6 +1057,7 @@ def process_data(self, data, cloud_cover='total_clouds', **kwargs): | |
return data[self.output_variables] | ||
|
||
|
||
@_forecast_deprecated | ||
class NDFD(ForecastModel): | ||
""" | ||
Subclass of the ForecastModel class representing NDFD forecast | ||
|
@@ -1112,6 +1126,7 @@ def process_data(self, data, **kwargs): | |
return data[self.output_variables] | ||
|
||
|
||
@_forecast_deprecated | ||
class RAP(ForecastModel): | ||
""" | ||
Subclass of the ForecastModel class representing RAP forecast model. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I suppose this information could go in the whatsnew as well. Open to suggestions both for its location and its content.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
what's new links to here, so I think it's fine.