-
Notifications
You must be signed in to change notification settings - Fork 143
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
Refactor methods without arguments into functions #685
Conversation
Signed-off-by: Mathis Richter <[email protected]>
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.
Looks great, thanks for working to clean things up!
Signed-off-by: Mathis Richter <[email protected]>
I assume the internal unit tests have also been tested? |
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.
Looks good Mathis
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Given that this will be a breaking change to some lib code and some end user code, I've tagged with Lava v0.8 milestone. |
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Signed-off-by: Mathis Richter <[email protected]>
Finished loihi and slurm docstrings.
* Refactoring methods without arguments into functions. Signed-off-by: Mathis Richter <[email protected]> * Reverting unintentional change to tutorial. Signed-off-by: Mathis Richter <[email protected]> * Added new set of functions by @tim-shea, refactored. Signed-off-by: Mathis Richter <[email protected]> * Fixed linter error: unused import. Signed-off-by: Mathis Richter <[email protected]> * Fixed linter and security errors. Signed-off-by: Mathis Richter <[email protected]> * Fixed linter errors. Signed-off-by: Mathis Richter <[email protected]> * Trying to make nosec work. Signed-off-by: Mathis Richter <[email protected]> * Moved nosec back; does not seem to make a difference. Signed-off-by: Mathis Richter <[email protected]> * Unit tests for some of the new functions in the slurm module. Signed-off-by: Mathis Richter <[email protected]> * Full unit tests for SLURM module. Signed-off-by: Mathis Richter <[email protected]> * Full unit tests for lava_loihi module. Signed-off-by: Mathis Richter <[email protected]> * Deactivated linter error. Signed-off-by: Mathis Richter <[email protected]> * Trying different nosec variants. Signed-off-by: Mathis Richter <[email protected]> * Trying different nosec variants. Signed-off-by: Mathis Richter <[email protected]> * Trying different nosec variants. Signed-off-by: Mathis Richter <[email protected]> * Redesigned the API for lava.utils.{slurm,loihi}. Signed-off-by: Mathis Richter <[email protected]> * Another attempt at fixing linting. Signed-off-by: Mathis Richter <[email protected]> * Trying with noqa Signed-off-by: Mathis Richter <[email protected]> * Fixed module error in test patch Signed-off-by: Mathis Richter <[email protected]> * Renamed is_lava_loihi_installed to is_installed. Signed-off-by: Mathis Richter <[email protected]> * Fixed code duplication of patch decorators. Signed-off-by: Mathis Richter <[email protected]> * Added doc string to patch decorator. Signed-off-by: Mathis Richter <[email protected]> * Finished loihi and slurm docstrings. --------- Signed-off-by: Mathis Richter <[email protected]> Co-authored-by: Timothy Shea <[email protected]> Co-authored-by: Tim Shea <[email protected]>
Objective of pull request: The
Loihi2
class with static property methods is producing critical linting errors. As I don't see a need for this to be a class, I am suggesting to refactor it into functions in aloihi2
module.Before merging this change, all other Lava libraries using it will have to be fixed as well.
@mathisrichter will make those changes.
Pull request checklist
Your PR fulfills the following requirements:
flakeheaven lint src/lava tests/
) and (bandit -r src/lava/.
) pass locallypytest
) passes locallyPull request type
Please check your PR type:
What is the current behavior?
What is the new behavior?
Does this introduce a breaking change?
Supplemental information