-
Notifications
You must be signed in to change notification settings - Fork 10
Remove foresight parameter #641
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
Conversation
dalonsoa
left a comment
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.
LGTM. If that was the only use of foresight actually implemented, I agree it can be ditched.
I guess this will be part of the other PR, but as we are changing the meaning of the outputs - the year in which things are outputted - that should be super clear in the documentation and the release notes.
* Move broadcast_techs out of quantities module * Update _inner_split * Fix trade model * Fix constraints tests * Fix demand_share tests * Fix quantities tests * Fix trade tests * Fix adhoc model * Rename broadcast_techs to broadcast_over_assets * Better docstring, rename argument * Delete filter_with_template * Remove `broadcast_over_assets` from `capacity_in_use` * Fix trade tests * Edit TODO * Remove foresight parameter * Update settings and documentation * Temporarily suppress test * Fix carbon budget framework * Revert change to settings * Update settings and documentation * Revert change to settings * Update results * Small changes to fix tests * Add warning about deprecated parameter * Clarify log messages * Better final message
* Fix outputs - save data for investment year * Revert change to fix tests * Update results files * Restore test * Revert change to outputs cache * Get outputs for first year * Update mca.py * Remove foresight parameter (#641) * Move broadcast_techs out of quantities module * Update _inner_split * Fix trade model * Fix constraints tests * Fix demand_share tests * Fix quantities tests * Fix trade tests * Fix adhoc model * Rename broadcast_techs to broadcast_over_assets * Better docstring, rename argument * Delete filter_with_template * Remove `broadcast_over_assets` from `capacity_in_use` * Fix trade tests * Edit TODO * Remove foresight parameter * Update settings and documentation * Temporarily suppress test * Fix carbon budget framework * Revert change to settings * Update settings and documentation * Revert change to settings * Update results * Small changes to fix tests * Add warning about deprecated parameter * Clarify log messages * Better final message * Update results * Actually update results * And more * Add kwargs arguments to prevent complaints * Add more kwargs arguments * Update trade result * Tidy run function
* Fix outputs - save data for investment year * Revert change to fix tests * Update results files * Restore test * Revert change to outputs cache * Get outputs for first year * Update mca.py * Remove foresight parameter (#641) * Move broadcast_techs out of quantities module * Update _inner_split * Fix trade model * Fix constraints tests * Fix demand_share tests * Fix quantities tests * Fix trade tests * Fix adhoc model * Rename broadcast_techs to broadcast_over_assets * Better docstring, rename argument * Delete filter_with_template * Remove `broadcast_over_assets` from `capacity_in_use` * Fix trade tests * Edit TODO * Remove foresight parameter * Update settings and documentation * Temporarily suppress test * Fix carbon budget framework * Revert change to settings * Update settings and documentation * Revert change to settings * Update results * Small changes to fix tests * Add warning about deprecated parameter * Clarify log messages * Better final message * Update results * Actually update results * And more * Add kwargs arguments to prevent complaints * Add more kwargs arguments * Update trade result * Remove more forecast features * Change docstring * Remove forecast settings * Simplify _interpolate * Update docs * Remove remaining references * Warning about deprecated parameter * Tidy run function
Description
As described in #476, this parameter has nothing to do with foresight and just adds an extra year to the time framework this many years on from the final year.
The only reason it does this (as far as I can tell) is to make up for a feature(/bug?) with the outputs: MUSE runs each investment period (e.g. 2040 to 2045, 2045 to 2050) in a loop, and each time it saves output data for the current year rather than the investment year. Therefore, if you want to get output data for the final year in the user-defined time framework, you need to add an extra year to the framework and simulate an extra investment step which is never saved.
I think the simplest solution is to modify the output layer so it saves data for the investment year rather than the current year (see #657)
In this PR I'm getting rid of the
foresightparameter (users will get a warning if it's stil present in the setting file), and cutting the time framework back to what's defined in the settings file. This means that (for now) the example results no longer have data for the final year in the framework. This is restored in #657Fixes #476