-
Notifications
You must be signed in to change notification settings - Fork 467
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
Baris/eng 303 artifact param naming bug #300
Conversation
src/zenml/steps/base_step.py
Outdated
set(cls.OUTPUT_SIGNATURE) | ||
) | ||
if shared_input_output_keys: | ||
all_keys = list(cls.INPUT_SIGNATURE) + list(cls.OUTPUT_SIGNATURE) |
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.
I guess it's not super relevant in this case because the list of all keys will never be too large, but I'd still suggest using a collections.Counter
object to count the occurrences of keys to make it a little more expressive.
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.
@schustmi thank you for the tip. I have added a new version utilizing the Counter
.
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.
Looks good to me :)
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.
LGTM!
Pre-requisites
Please ensure you have done the following:
Types of changes
Describe changes
A small bug fix that adds the parameter names in the config to the duplicate name check in the metaclass of the BaseStep