Repository navigation
Conversation
…ods to pytta.iso3741 pytta.iso3741.sound_power(Lp, T, V, S, f, temperature, pressure) gives the sound power level by band from the average sound pressure level in the reverberation room, by the direct method of ISO 3741:1999, 8.4.1, Equations (11) and (12): the equivalent absorption area from T by Sabine, the air absorption term 4.34 A/S, the Waterhouse correction and the term that normalizes the result to rho c = 400 N s/m3 from the temperature and the atmospheric pressure. pytta.iso3741.sound_power_comparison(Lp, Lp_ref, LW_ref) gives the level by the comparison method with a reference sound source, Equation (13). The equations were checked against the text of ISO 3741:1999 and its corrigendum of 2001. The 2010 edition, which replaces the impedance term with C1 and C2, was not available, so it is not implemented. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This was referenced Oct 31, 2026
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds the sound power level of ISO 3741:1999 to
pytta.iso3741, which until now has onlyLp_ST:sound_power(Lp, T, V, S, f, temperature, pressure): the direct method of 8.4.1, Equations (11) and (12). The equivalent absorption area comes from T by Sabine, A = 55.26 V / (c T), with c = 20.05 sqrt(273 + θ). The level then gets the air absorption term 4.34 A/S, the Waterhouse correction 10 lg(1 + S c / (8 V f)), the term -25 lg[427/400 sqrt(273/(273 + θ)) B/B0] that refers the result to ρc = 400 N s/m³, and -6 dB.sound_power_comparison(Lp, Lp_ref, LW_ref): the comparison method with a reference sound source, Equation (13).The equations were checked against the text of ISO 3741:1999 and its corrigendum of 2001. In the copy used, the square root of the impedance term is lost in Equation (11). It was restored, since only with it does the term give the ρc of air, about 412 N s/m³ at 20 °C. The 2010 edition replaces that term with C1 and C2. It was not available, so it is not implemented.
The tests in
tests/test_iso3741.py:The existing
Lp_STwas left as it is. When called, it raises a NameError on the undefinedfirstChNum. It also averages the levels arithmetically, while Equations (9) and (10) average the energy, and it has no correction for background noise. That calls for a separate fix.Checked with Python 3.12, numpy 1.26 and scipy 1.17. The 7 failures of
development(3 intest_h5io.py, 4 intest_pyttasave.py) are the same with and without this change.Co-Authored-By: Claude Fable 5.1 noreply@anthropic.com