formatting + code structure comments #1
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Some of the code here is a bit hard to read (e.g. very long lines). Could you set up a standard python formatter / linter for the code (e.g. flake8+black)?
Might also be worth adding jupytext to avoid committing binary data.
When you have code like this
It's worth thinking about using a datastructure. This is pretty hard to read and easy to make mistakes
formattingto formatting + code structure commentsI also wonder whether it's really a good idea for
WRPLLSim
to have a separaterun
method outside of the constructor. Are there any cases where one doesn't immediately want to callrun
after construction? Or, where one wants to callrun
multiple times on the same object?This almost feels more like it should be a data class, with
run
->__post_init__
so it's explicitly part of construction of the object and post construction the object just has the simulation outputs. I also wonder whether thesim
code should be inside this object rather than this object wrapping it. The additional indirection just makes the code harder to read without adding any value AFAICT.