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

Enable Path as arg #458

Merged
merged 9 commits into from Nov 18, 2020
Merged

Conversation

danielhuppmann
Copy link
Member

@danielhuppmann danielhuppmann commented Nov 17, 2020

Please confirm that this PR has done the following:

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

Description of PR

This PR was initiated by a comment by @znicholls (#454 (comment)) about using tmpdir facility in the tests.

Changes:

  • enable initializing an IamDataFrame with a Path or LocalPath object (in addition to passing a file path as string)
  • raise a dedicated error message when initializing without meaningful args 'IamDataFrame constructor not properly called!' rather than showing the message Initializing from list is not supported, ... (which was previously shown in that case)
  • rework the initialization workflow and add more comments
  • use tmpdir facility in the io-tests

Copy link
Collaborator

@znicholls znicholls left a comment

Choose a reason for hiding this comment

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

lgtm

pyam/utils.py Outdated Show resolved Hide resolved
@danielhuppmann danielhuppmann marked this pull request as ready for review November 18, 2020 05:52
@danielhuppmann danielhuppmann merged commit b23f76d into IAMconsortium:master Nov 18, 2020
@danielhuppmann danielhuppmann deleted the io/path branch November 18, 2020 08:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants