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

Inheritance diagram. #43

Open
Zsailer opened this issue Mar 22, 2019 · 3 comments
Open

Inheritance diagram. #43

Zsailer opened this issue Mar 22, 2019 · 3 comments

Comments

@Zsailer
Copy link
Member

Zsailer commented Mar 22, 2019

@caelanradford and @jbloom might find this helpful.

I just discovered pylint's UML (unified model language) tool, pyreverse. You can call pyreverse from your command line on any python file and get a diagram of the inheritance tree. It's pretty handy.

For examples, here's what I got when I ran it on the spline model in the epistasis package:

pyreverse -my -A -o png epistasis/models/nonlinear/spline.py

classes_epistasis

@Zsailer
Copy link
Member Author

Zsailer commented Mar 22, 2019

Note, you have to install graphviz (installation depends on your OS) and pylint (pip installable).

@Zsailer
Copy link
Member Author

Zsailer commented Mar 22, 2019

@harmsm might also find this useful when trying to understand Zach's unreviewed, "grad-student-doesn't-know-what-he's-doing" code.

@jbloom
Copy link

jbloom commented Mar 24, 2019

This is great, thanks.

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

2 participants