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

Update bms-network-setup.py - Some refactoring #9

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

hlange4
Copy link

@hlange4 hlange4 commented Oct 18, 2023

Removed duplicate code from the man himself :P

Removed duplicate code from the man himself :P
Fixed some Exception stylings - it would be best to define custom Exceptions.

added ```startswith``` and ```endswith``` for better readability

removed several unused parameters in functions:
Unused parameters are misleading. Whatever the value passed to such parameters is, the behavior will be the same.

rewrote the code snippet that checks if jval is not None to a more concise way to express this

Defined a constant instead of duplicating this literal ".yaml" 3 times.
@hlange4 hlange4 changed the title Update bms-network-setup.py - removed duplicate statement Update bms-network-setup.py - Some refactoring Oct 18, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant