-
Notifications
You must be signed in to change notification settings - Fork 192
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
File name can now be specified for verdi node graph generate
#5897
File name can now be specified for verdi node graph generate
#5897
Conversation
…eature/5692/allow-to-change-verdi-node-filename
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks a lot for your contribution @AhmedBasem20 . The solution is just fine, but in this case I think it might be best to let the user fully define the output filename (not just the base name) and also use an argument instead of an option
Hello @sphuber, Thanks for this informative review. I do agree with you that this solution is more convenient. |
The `graphviz.Digraph.render` method would automatically add a suffix to the output filename when specified with `filename`, which is not what we want. Using `outfile` instead solves the problem as it doesn't modify the filename. However, a warning will be issued if the suffix of the filename does not match the chosen output format, but that is acceptable.
@AhmedBasem20 the tests were failing because the |
Thanks for the contribution @AhmedBasem20 |
Closes #5692
Added a
--basename
option so that the user could specify a file base name.if not specified, the default file base name would be the node PK.