-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
Conversation
dvc/repo/plots/__init__.py
Outdated
return to_result(plots) | ||
|
||
target_infos = {PathInfo(os.path.abspath(target)) for target in targets} | ||
def is_plot(out): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
def is_plot(out): | |
def _is_plot(out): |
same with others
dvc/repo/collect.py
Outdated
) | ||
wrong_targets.add(t) | ||
|
||
target_infos = (target_infos ^ subtargets) - wrong_targets |
There was a problem hiding this comment.
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?
dvc/repo/collect.py
Outdated
logger = logging.getLogger(__name__) | ||
|
||
|
||
def collect( |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
β I have followed the Contributing to DVC checklist.
π If this PR requires documentation updates, I have created a separate PR (or issue, at least) in dvc.org and linked it here.
Thank you for the contribution - we'll try to review it as soon as possible. π
Related to #4446