Skip to content

refactor: replace if-chain in RunningDecimationFilter._dec_func with dict lookup#117

Open
maayanmatsliah-tech wants to merge 1 commit intoAlexShkarin:mainfrom
maayanmatsliah-tech:main
Open

refactor: replace if-chain in RunningDecimationFilter._dec_func with dict lookup#117
maayanmatsliah-tech wants to merge 1 commit intoAlexShkarin:mainfrom
maayanmatsliah-tech:main

Conversation

@maayanmatsliah-tech
Copy link
Copy Markdown

Wow, this is a cool repo! I made a small cleanup in 'filters.py' : replaced the if-chain in RunningDecimationFilter._dec_func with a class-level dict lookup _MODE_FUNCS, and added a docstring to the method. No behavior change, output is identical. Hope this helps!

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