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

Refactor the "exclude" feature #755

Closed
danielhuppmann opened this issue Jun 28, 2023 · 2 comments · Fixed by #759
Closed

Refactor the "exclude" feature #755

danielhuppmann opened this issue Jun 28, 2023 · 2 comments · Fixed by #759

Comments

@danielhuppmann
Copy link
Member

All validation methods have a flag "exclude_on_fail" feature to easily track which scenarios fail one or several validation steps. This is implemented via an "exclude" column in the meta indicators.

However, this approach causes some hiccups in the integration with the ixmp database infrastructure - the "exclude" meta indicator is always added by pyam and then has to be removed before importing to the database (or can cause confusion by users).

My proposal: drop the "exclude" column from the "meta" dataframe and move it to an own attribute. in addition, extend the filter() method such that df.filter(exclude=True) continues to work as is.

Any thoughts @phackstock @gidden @byersiiasa?

@gidden
Copy link
Member

gidden commented Jun 28, 2023 via email

@byersiiasa
Copy link
Collaborator

Sure - sounds fine to me.
But would there be a method to edit the exclude attribute manually?
e.g., perhaps similar to how one might use set_meta('exclude'...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants