Skip to content

Fix for issue #1160: Add logarithm support #2165

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

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

Conversation

n6hpa
Copy link

@n6hpa n6hpa commented Apr 17, 2025

Adds ability to add dB values in a sensible way. I don't think documentation updates are needed as the behavior is now more intuitive.

  • Closes # 1160
  • Executed pre-commit run --all-files with no errors
  • The change is fully covered by automated unit tests
  • Documented in docs/ as appropriate
  • Added an entry to the CHANGES file

Copy link

codspeed-hq bot commented Apr 18, 2025

CodSpeed Performance Report

Merging #2165 will not alter performance

Comparing Heliosphere-Network:jportukalian/fix-1160-add-logarithms (9a917a2) with master (db02470)

Summary

✅ 447 untouched benchmarks


# Case 2: Special handling for adding dimensionless dB to other logarithmic units
elif (
other_non_mul_units[0] == "decibel"
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you check for a dimensionless log unit here instead of hard coding decibel?

this case needs a test

@andrewgsavage
Copy link
Collaborator

this is good. thank you for the clear explanatory comments, they make it easy to follow.

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.

2 participants