Skip to content

Commit

Permalink
Use new runs API
Browse files Browse the repository at this point in the history
  • Loading branch information
danielhuppmann committed Dec 12, 2023
1 parent 114c13f commit 7374f14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion RELEASE_NOTES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

- [#804](https://github.com/IAMconsortium/pyam/pull/804) Support filters as direct keyword arguments for `validate()` method
- [#801](https://github.com/IAMconsortium/pyam/pull/801) Support initializing with `meta` dataframe in long format
- [#797](https://github.com/IAMconsortium/pyam/pull/797] Add `to_ixmp4()` method to write to an **ixmp4** platform
- [#797](https://github.com/IAMconsortium/pyam/pull/797) Add `to_ixmp4()` method to write to an **ixmp4** platform
- [#796](https://github.com/IAMconsortium/pyam/pull/796) Raise explicit error message if no connection to IIASA manager service
- [#794](https://github.com/IAMconsortium/pyam/pull/794) Fix wrong color codes for AR6 Illustrative Pathways
- [#792](https://github.com/IAMconsortium/pyam/pull/792) Support region-aggregation with weights-index >> data-index
Expand Down
2 changes: 1 addition & 1 deletion pyam/ixmp4.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def write_to_ixmp4(df, platform: ixmp4.Platform):
for model, scenario in df.index:
_df = df.filter(model=model, scenario=scenario)

run = platform.Run(model=model, scenario=scenario, version="new")
run = platform.runs.create(model=model, scenario=scenario)
run.iamc.add(_df.data)
run.meta = dict(_df.meta.iloc[0])
run.set_as_default()

0 comments on commit 7374f14

Please sign in to comment.