Skip to content

params, plots, metrics: unify collection #4603

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

Merged
merged 2 commits into from
Oct 9, 2020
Merged

Conversation

pared
Copy link
Contributor

@pared pared commented Sep 23, 2020

Thank you for the contribution - we'll try to review it as soon as possible. πŸ™
Related to #4446

@pared pared changed the title [WIP] plots, metrics: unify collection plots, metrics: unify collection Sep 25, 2020
@pared pared marked this pull request as ready for review September 25, 2020 09:57
@pared pared requested a review from efiop September 25, 2020 09:57
@pared pared requested a review from skshetry October 2, 2020 15:43
@pared pared changed the title plots, metrics: unify collection params, plots, metrics: unify collection Oct 5, 2020
return to_result(plots)

target_infos = {PathInfo(os.path.abspath(target)) for target in targets}
def is_plot(out):
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
def is_plot(out):
def _is_plot(out):

same with others

)
wrong_targets.add(t)

target_infos = (target_infos ^ subtargets) - wrong_targets
Copy link
Contributor

Choose a reason for hiding this comment

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

Might be missing something, but why not just collect stuff that has passed the checks in the loop above?

logger = logging.getLogger(__name__)


def collect(
Copy link
Contributor

Choose a reason for hiding this comment

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

Are you sure this couldn't be reorganized into meaningful parts? From the first glance looks cramped and hard to read.

@pared pared requested a review from efiop October 6, 2020 16:34
Copy link
Contributor

@efiop efiop left a comment

Choose a reason for hiding this comment

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

Thanks!

@efiop efiop merged commit 9f90c80 into iterative:master Oct 9, 2020
@efiop efiop added the refactoring Factoring and re-factoring label Oct 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Factoring and re-factoring
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants