Skip to content
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

Allow rename() for model and scenarios #87

Merged
merged 6 commits into from
Sep 17, 2018

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Sep 10, 2018

Please confirm that this PR has done the following:

  • Tests Added
  • Documentation Added
  • Description in RELEASE_NOTES.md Added

Description

This PR extends the rename() function to also work for the model and scenario names. In contrast to renaming of variable or region, renaming by model and scenario enforces a unique meta.index and will raise an error if renaming leads to duplicates of model-scenario combination.

], columns=['model', 'scenario', 'exclude']
).set_index(META_IDX)

print(obs.meta)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rm prints please

@gidden
Copy link
Member

gidden commented Sep 17, 2018

lgtm, can you rebase/update on current master and rm the prints, then should be good to go!

@gidden gidden merged commit 2b6ba99 into IAMconsortium:master Sep 17, 2018
@danielhuppmann danielhuppmann deleted the rename_index branch September 18, 2018 07:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants