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

params_for utility #117

Merged
merged 1 commit into from
Nov 17, 2017
Merged

params_for utility #117

merged 1 commit into from
Nov 17, 2017

Conversation

ottonemo
Copy link
Member

@ottonemo ottonemo commented Nov 17, 2017

Refactor _get_params_for to utility function.

Makes it possible to use it in user code as well, e.g.
for assigning values in submodules, e.g.:

def __init__(self, **kwargs):
     self.submod = Submod(**params_for('submod', kwargs)

Makes it possible to use it in user code as well, e.g.
for assigning values in submodules, e.g.:

    def __init__(self, **kwargs):
        self.submod = Submod(**params_for('submod', kwargs)
@ottonemo ottonemo changed the title Feature/params for utility params_for utility Nov 17, 2017
@benjamin-work benjamin-work merged commit 7f6da55 into master Nov 17, 2017
@ottonemo ottonemo deleted the feature/params-for-utility branch December 8, 2017 17:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants