Automatic class diagram construction#66
Conversation
84500be to
95c9dfe
Compare
|
Hi @PawelPlesniak, this is my pet project and I've gotten it working quite nicely I think. It should also automatically work for drunc. Let me know what you think |
|
Commits from 399637c to cefebef are to support DUNE-DAQ/drunc#897 It was noticed that importing the CONTEXT_SETTINGS from the logging framework lead to daqwpytools basically importing everything thats required for the logging. Unofrtunately, this included erskafka, which in the github actions is not installed. To remove this dependency, the formatting script was basically refactored to now have a utils folder which main purpose is to load the configs found in an inii file, adn then using that independently in the logging frameowrk and in the uml pmodule. This means that running the uml generator no longer requires any dependency on the ersikafka |
|
Thanks @emmuhamm, this is a great tool! I ran a few tests to get a complete idea of the requirements, and see works, but the I checked repos that are not locally installed, and it worked. I used the following to test I ran MSQT just to make sure that the changes here do not affect the core code, and happily, all is well. |
PawelPlesniak
left a comment
There was a problem hiding this comment.
Nice tool, thank you!
Description
Fixes #57
We have a new tool! Automatic Class UML diagram generator!!
Copy paste of the docs from the CLI tool:
The most basic usage is
daqpytools-generate-uml [package name] --directory [package directory] --output-directory [dir] --splitExample outputs

Some of the new files can also be called, for manual debugging:
Follow up for next time:
#68
Type of change
Testing checklist
dbt-build --unittest)pytest -s minimal_system_quick_test.py)dunedaq_integtest_bundle.sh)python -m pytest)pre-commit run --all-files)Manual test
daqpytools-generate-uml daqpytools --directory [path to daqpytools] --output-directory pics --splitdaqpytools-generate-uml drunc --directory [path to drunc] --output-directory pics --splitFurther checks
dbt-build --lint, and/or see https://dune-daq-sw.readthedocs.io/en/latest/packages/styleguide/)(Indicate issue here: # (issue))