Skip to content

Scattering-freefield #8

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

Closed
wants to merge 46 commits into from
Closed

Scattering-freefield #8

wants to merge 46 commits into from

Conversation

ahms5
Copy link
Member

@ahms5 ahms5 commented Sep 22, 2022

Changes proposed in this pull request:

  • implement scattering coefficient calculation from freefield measurements/simulations

@ahms5 ahms5 self-assigned this Sep 22, 2022
@ahms5 ahms5 requested a review from mberz September 22, 2022 14:42
@ahms5 ahms5 added enhancement New feature or request scattering labels Sep 22, 2022
@ahms5 ahms5 requested a review from sikersten September 27, 2022 05:59
Copy link
Member

@sikersten sikersten left a comment

Choose a reason for hiding this comment

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

Implementation looks fine, very nice that you start with this package!

Comment on lines 69 to 72
# calculate random-incidence scattering coefficient
if incident_directions is not None:
s_rand = random_incidence(s, incident_directions)
return s, s_rand
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
# calculate random-incidence scattering coefficient
if incident_directions is not None:
s_rand = random_incidence(s, incident_directions)
return s, s_rand

from imkar.testing import stub_utils


@pytest.fixture
Copy link
Member

Choose a reason for hiding this comment

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

maybe I'm missing something here: What's the reason for not using pyfar.samplings?

Copy link
Member Author

Choose a reason for hiding this comment

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

The shape of the data is quite different, pyfar.samplings just returns a flatten Coordinates object. we need a cshape of (#angle_1, #angle_2)

@@ -0,0 +1,34 @@
"""
Copy link
Member

Choose a reason for hiding this comment

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

If you really want to provide stub utils, please add test for them

@ahms5
Copy link
Member Author

ahms5 commented Nov 30, 2022

#9 will remove tests for Python 3.7

@ahms5
Copy link
Member Author

ahms5 commented Nov 30, 2022

ready for review, see #7 at first. #7 is merged into this here.

@ahms5 ahms5 requested a review from sikersten December 6, 2022 15:30
@ahms5
Copy link
Member Author

ahms5 commented Feb 13, 2023

doc fails, fixes in #10

@ahms5 ahms5 requested a review from f-brinkmann February 13, 2023 08:36
@ahms5
Copy link
Member Author

ahms5 commented Feb 24, 2023

is obsolte and replaces by #12

@ahms5 ahms5 closed this Feb 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request scattering
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants