Skip to main content
← Lab

energydb

confirmedupstream bugPython · python-acousticsSystems & data structuresJuly 25, 2026

the question

Does python-acoustics's sound_energy_level include the factor of ten the decibel definition requires?

what came out

acoustics/standards/iso_tr_25417_2007.py sound_energy_level returns np.log10(energy/reference), dropping the 10.0 factor its own docstring (L_J = 10 log10) and siblings sound_power_level/sound_pressure_level keep. sound_energy_level(1e-6) returns 6.0 dB where the definition gives 60.0, exactly ten times too small at every input.

method & receipts

  • Result: confirmed
  • Reproducible one script re-runs the whole thing from scratch.
  • Tested — a correctness/benchmark suite ships alongside the code.

→ read the code and re-run it

github.com/v-code01/energydb