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

Find explicit way to expose Params subclass parameters to the user when constructing an instance of the subclass #12

Open
schuylerfried opened this issue Apr 30, 2019 · 0 comments

Comments

@schuylerfried
Copy link
Contributor

  • Right now, if you construct an instance of a Params subclass, you either need to manually create an __init__ function to override the BaseClass init to explicitly show what the subclass attributes are. Or, you need to read the source code.

  • Neither of these is ideal for people scripting in Ipython or using a jupyter notebook.

  • Possible avenues:

  1. Override the help on a class somehow, such that it prints all the attributes.
  2. Autogenerate an __init__ function through a decorator on the Params subclass
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

No branches or pull requests

1 participant