Skip to content

RAP Lateral Level based on energy ratio#143

Merged
mberz merged 11 commits intodevelopfrom
feature/lateral_level
Mar 12, 2026
Merged

RAP Lateral Level based on energy ratio#143
mberz merged 11 commits intodevelopfrom
feature/lateral_level

Conversation

@SimonBuechner
Copy link
Contributor

Changes proposed in this pull request:

  • Function for calculation of RAP Lateral Level
  • Accompanying tests

@SimonBuechner SimonBuechner added this to the v1.0.0 milestone Feb 28, 2026
@SimonBuechner SimonBuechner self-assigned this Feb 28, 2026
@SimonBuechner SimonBuechner added the enhancement New feature or request label Feb 28, 2026
@SimonBuechner SimonBuechner moved this from Backlog to Implementation in progress in Weekly Planning Feb 28, 2026
@SimonBuechner SimonBuechner moved this from Implementation in progress to Require review in Weekly Planning Feb 28, 2026
@SimonBuechner SimonBuechner marked this pull request as ready for review March 2, 2026 13:28
@SimonBuechner SimonBuechner moved this from Require review to Implementation in progress in Weekly Planning Mar 2, 2026

return energy_ratio

def late_lateral_level(energy_decay_curve_ref_10m,
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
def late_lateral_level(energy_decay_curve_ref_10m,
def late_lateral_level_difference(energy_decay_curve_ref_10m,

It's still a ratio on linear scale and difference on log scale isn't it?
If feel that the names should be consistent among the different parameters, see early lateral ratio function name.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Doesn't the 'level' already indicate that it is log scale? Or do you mean something else?

Copy link
Member

Choose a reason for hiding this comment

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

ISO 3382 referrs to this as 'late lateral sound level' (Table A.1) and 'lateral sound energy level' (above Eq. A.17). I would suggest to use the same terminology as in the standard and use the former for brevity. Although, I agree that 'level difference' would be more precise.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think it would make sense to name the function identical to the norm. I've changed that in this PR.

@github-project-automation github-project-automation bot moved this from Implementation in progress to Require review in Weekly Planning Mar 2, 2026
Copy link
Member

@f-brinkmann f-brinkmann left a comment

Choose a reason for hiding this comment

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

Thanks, the code looked fine. Only comments on docs and function name.


return energy_ratio

def late_lateral_level(energy_decay_curve_ref_10m,
Copy link
Member

Choose a reason for hiding this comment

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

ISO 3382 referrs to this as 'late lateral sound level' (Table A.1) and 'lateral sound energy level' (above Eq. A.17). I would suggest to use the same terminology as in the standard and use the former for brevity. Although, I agree that 'level difference' would be more precise.

@mberz
Copy link
Member

mberz commented Mar 6, 2026

@SimonBuechner There are quite some conflicts. Since it's so many I think it makes sense to resolve them before reviews are done.

@SimonBuechner SimonBuechner force-pushed the feature/lateral_level branch from ee2ee38 to 80b7521 Compare March 6, 2026 12:52
@SimonBuechner
Copy link
Contributor Author

@SimonBuechner There are quite some conflicts. Since it's so many I think it makes sense to resolve them before reviews are done.

Should be solved now.

Copy link
Contributor

@artur-pa artur-pa left a comment

Choose a reason for hiding this comment

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

Looks good, I have two small comments.

Comment on lines +560 to +562
Energy decay curve of the reference free field impulse response
measured vwith an omnidirectional microphone at 10 m distance in the
free field. The EDC must start at time zero.
Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to be consistent with the sound strength parameter?
energy_decay_curve_free_field : pyfar.TimeData
Energy decay curve of the reference free-field impulse response
at 10 m. The EDC must start at time zero.

Copy link
Member

Choose a reason for hiding this comment

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

This comment is resolved, isn't it?

Comment on lines +560 to +562
Energy decay curve of the reference free field impulse response
measured vwith an omnidirectional microphone at 10 m distance in the
free field. The EDC must start at time zero.
Copy link
Member

Choose a reason for hiding this comment

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

This comment is resolved, isn't it?

@mberz mberz merged commit 74e885a into develop Mar 12, 2026
13 checks passed
@github-project-automation github-project-automation bot moved this from Require review to Done in Weekly Planning Mar 12, 2026
@mberz mberz deleted the feature/lateral_level branch March 12, 2026 10:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants