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

Fix rounding issue when reading config parameter value #3084

Merged

Conversation

zagrim
Copy link
Collaborator

@zagrim zagrim commented Dec 7, 2024

Fixing the config file parameter value conversion formula to match the one used in the opposite direction. It seemed to work now ok at least with UI setting values from 0% to 4% so the original 11+ yo version doesn't look like a deliberate tweak due to some oddity (unless the ways of Python doing rounding have changed from those times).

@zagrim zagrim requested a review from MichaIng December 7, 2024 14:15
@zagrim
Copy link
Collaborator Author

zagrim commented Dec 7, 2024

Fixes #3083

@MichaIng MichaIng added this to the v0.43.1 milestone Dec 8, 2024
@MichaIng MichaIng force-pushed the fix-noise_level-conversion-from-config branch from f93b931 to b1c0fb6 Compare December 8, 2024 23:01
@MichaIng MichaIng linked an issue Dec 8, 2024 that may be closed by this pull request
motioneye/config.py Outdated Show resolved Hide resolved
round() produces an integer already, if no explicit number of decimal places passed as 2nd parameter. Wrapping it into another int() is hence unnecessary.

Signed-off-by: MichaIng <[email protected]>
@MichaIng MichaIng force-pushed the fix-noise_level-conversion-from-config branch from b1c0fb6 to 6f5768f Compare December 9, 2024 13:08
@zagrim zagrim merged commit a2cc0ba into motioneye-project:dev Dec 9, 2024
12 checks passed
@zagrim zagrim deleted the fix-noise_level-conversion-from-config branch December 9, 2024 15:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

0.43.1b2 - Noise Level Rounding Issue
2 participants