-
Notifications
You must be signed in to change notification settings - Fork 80
Unify update category #1050
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
Unify update category #1050
Conversation
Changes Unknown when pulling 57ab913 on josenavas:unify-update-category into * on biocore:master*. |
👍 |
…update-category
Now that #1044 has been merged, this should be faster to review! |
|
||
for k, v in viewitems(samples_and_values): | ||
sample = self[k] | ||
sample[category] = v |
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.
why not do self[k][category] = v
and not need to instantiate sample.
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.
You're not saving the instantiation, it is happening at the moment that you do self[k]
. Anyways, this is left like this because I modify this in my other PR #1054....
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.
ok
One small comment. |
Thanks @squirrelo I just answered it, if you think that's ok, it is mergeable! |
👍 |
I moved the
update_category
function to the base class. This PR includes the commits in #1044 so review/merge that one first.I just moved the code around and created the tests for the prep template class.