-
Notifications
You must be signed in to change notification settings - Fork 6
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
add __str__() and _repr_html_() methods for the Graph, Epoch, et al. #235
Comments
I'm really missing a proper |
The attrs default leaves a lot to be desired. There's an example here using the |
I think I'd be better to just hand craft something - it's time well spent, as it makes debugging so much easier. |
Well, we're making the claim that the yaml files are human readable, so how about using that?
|
Excellent point! Yes, that's clearly the right approach. |
It turns out that it's possible to output a mix of flow style and block style using ruamel.yaml. I haven't quite figured out the incantation to do so, but if we can output deme ancestors/proportions and epochs/migrations/pulses using the flow style, this will certainly make for compact and readable debug output. |
So that we do better than, e.g.:
Like recently added to msprime's Demography class.
The text was updated successfully, but these errors were encountered: