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

Nicer __str__ #77

Open
AdamHillier opened this issue Nov 21, 2019 · 2 comments
Open

Nicer __str__ #77

AdamHillier opened this issue Nov 21, 2019 · 2 comments
Assignees
Labels
feature New feature or request

Comments

@AdamHillier
Copy link
Contributor

At the moment, if a component appears multiple times in the nested component hierarchy, it will get printed multiple times in __str__. It would be nice if it would only be printed once, ideally at the 'highest' level.

@AdamHillier AdamHillier added the feature New feature or request label Nov 21, 2019
@AdamHillier AdamHillier self-assigned this Nov 21, 2019
@AdamHillier
Copy link
Contributor Author

It would also be good to get some nice colour coding which shows which parameters have been overriden through the CLI.

@jneeven
Copy link
Contributor

jneeven commented Feb 20, 2020

As we discussed, it would also be nice to add a boolean flag to each Field that determines to what extent the Field is printed, e.g. expand_print=True. Then we can set it to False for things we don't want to have in the parameter overview, e.g. printing attributes of the type tfds.core.DatasetInfo is very verbose and also unnecessary; simply printing the name of the class would suffice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants