-
Notifications
You must be signed in to change notification settings - Fork 56
Add T into the BMT workflows and update MACRO for BMT #486
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
Open
yiyi1991
wants to merge
47
commits into
main
Choose a base branch
from
bmt_dev_ngfs_c1
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
47 commits
Select commit
Hold shift + click to select a range
d4ef495
Partly revert d86843e76ad08c5cc1fa709e543848a3742dfb38
khaeru 46bdb54
Sort .cli.submodules
khaeru cc57558
Add TODO reduce complexity of prepare_data_B()
khaeru b174dc3
Use .transport.workflow.add_steps in .bmt.workflow
khaeru 51e56f2
Update BMT workflow
yiyi1991 c953b01
Update material haircut vetting
yiyi1991 8a4d5e1
Update T in the BMT workflow
yiyi1991 8f143bf
Update T report TODO
yiyi1991 bdcaad6
Add add_macro and clean BMT config
yiyi1991 ddb38ed
Update add_macro for BMT
yiyi1991 947d043
Update add_macro_materials
yiyi1991 bb7f514
Add .report.operator.remove_zeros()
khaeru 527430f
Replace transport.report 0 with blanks in y<y₀
yiyi1991 2209715
Add tests for IAMC zero-masking in transport report
yiyi1991 e7038ba
Fix IAMC zero-masking to preserve pyam variables
yiyi1991 414c05f
Revert "Fix IAMC zero-masking to preserve pyam variables"
khaeru b4c17cf
Revert "Add tests for IAMC zero-masking in transport report"
khaeru 6e0a891
Revert "Replace transport.report 0 with blanks in y<y₀"
khaeru ae60980
Remove zeros in .transport.report.convert_iamc()
khaeru 273bf36
Call transport report in BMT workflow
yiyi1991 ec1752d
Mute assert to run transport.report with y₀>2020
yiyi1991 0a40151
Update final setup for NGFS C1
yiyi1991 d1a1cff
Update BMT config
yiyi1991 e0c1022
Update test_bmt
yiyi1991 5361fcc
Update test_workflow for BMT
yiyi1991 a487ce3
Update BMT doc
yiyi1991 0636955
Improve build_PM and other tests
yiyi1991 b384f12
Add _floor_demolition to balance_equality
yiyi1991 46ec0e3
Update test for build_PM
yiyi1991 b602eb0
Modify clone in general workflow to set as default
yiyi1991 f51de2f
Handle non-standard CSV format in .buildings.build
yiyi1991 880465e
Floor only non-electr prices when linking to MixB
yiyi1991 2c4f1af
Update BMT default config
yiyi1991 ef58a52
Update invocation of message-ix-buildings scripts
yiyi1991 8a1ab16
Include 2110 demand filling and ruff fix
yiyi1991 47e5714
Add tests to cover workflow step functions
yiyi1991 64312db
Add tests to cover scripts calling MixB
yiyi1991 0055491
Add tests for BMT config
yiyi1991 3131961
Simplify tests of BMT config
khaeru be87075
Fix flaky inter_pipe tests and ruff format
yiyi1991 407a936
Simplify generate_vetting_csv() per review
khaeru 957bd5d
Use .model.workflow.solve in .bmt.workflow
khaeru 4a77612
Remove _message_buildings_install_dir(), tests
khaeru b1db497
Tidy docstrings, logging in .bmt.{config,workflow}
khaeru 59b140c
Clarify content of bmt/config.yml / Config.code
khaeru 6463a61
Improve type hints for #486
khaeru 115107c
Add #486 to doc/whatsnew
khaeru 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |
|---|---|---|
| @@ -1,17 +1,28 @@ | ||
| # BMT workflow configuration. | ||
| # Top-level keys are energy demand sectors; each is loaded into context (e.g. context.buildings). | ||
| # Paths under a sector are relative to private_data_path(sector) unless redefined. | ||
| # BMT workflow configuration | ||
|
|
||
| # Top-level keys: model_name, buildings, macro, transport, … | ||
| # apply_bmt_config sets context.bmt (full dict), context.buildings, context.macro, | ||
| # and context.transport (MESSAGEix-Transport Config from the transport section). | ||
|
|
||
| model_name: "MESSAGEix-GLOBIOM-GAINS 2.1-BMT-R12" | ||
|
|
||
| buildings: | ||
| # An ID from CL_SCENARIO_CIRCEULAR, e.g. "R" for "Reference" | ||
| code: "R" | ||
| data_paths: | ||
| # Input file names under private_data_path("buildings") | ||
| prices: "input_prices_R12.csv" | ||
| sturm_r: "report_MESSAGE_resid_SSP2_nopol_post.csv" | ||
| sturm_c: "report_MESSAGE_comm_SSP2_nopol_post.csv" | ||
| demand_static: "static_20251227.csv" | ||
| sturm_r: "resid_sturm_aligned_R.csv" | ||
| sturm_c: "comm_sturm_aligned_R.csv" | ||
| demand_static: "resid_comm_glance_aligned_R.csv" | ||
| # Whether to include materials (steel, cement, aluminum) in the buildings spec | ||
| with_materials: true | ||
| with_materials: False | ||
|
|
||
| macro: "macro_calibration_input_SSP2_bmt.xlsx" | ||
|
|
||
| transport: | ||
| # Scenario code id from the transport SDMX codelist | ||
| code: "SSP2" # or "M SSP2" | ||
|
khaeru marked this conversation as resolved.
|
||
|
|
||
| # transport: {} | ||
| # materials: {} | ||
| # others: {} | ||
This file contains hidden or 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
3 changes: 3 additions & 0 deletions
3
message_ix_models/data/material/macro/macro_calibration_input_SSP2_bmt.xlsx
Git LFS file not shown
This file contains hidden or 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
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.