-
Notifications
You must be signed in to change notification settings - Fork 14
Refactor: Eyring reverberation time calculation #131
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
Merged
Merged
Changes from 3 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
6aa6766
refactor Eyring reverberation time calculation
mberz 4905048
- Add type hints
mberz 10a3ff4
improve grouping of input checks
mberz a75b430
Add return in example
mberz 1a78858
formatting example
mberz 5869911
update typing
mberz f2d1a32
fix obsolete use of np.any
mberz 10babb2
update tests & explicitly include edge cases for absorption
mberz e1517d1
Add check speed of sound negative
mberz ca62a03
more compact format
mberz 9d6b8a3
docstring format
mberz 7784fc6
formatting
mberz d242042
formatting
mberz e472cac
suppress warnings for divide by zero which are explicitly handled below
mberz d4d603c
docstring and type hinting update
mberz 31b4b00
Update type hinting to be compatible with earlier numpy versions
mberz File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Some comments aren't visible on the classic Files Changed page.
There are no files selected for viewing
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
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
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The type annotation
np.typing.NDArray[float]is incorrect for themean_absorptionparameter. According to the docstring, this parameter can be either a float or a numpy.ndarray. The correct type annotation should befloat | np.typing.NDArray[np.float64]orUnion[float, np.typing.NDArray[np.float64]]. Additionally,np.typing.NDArrayexpects a numpy dtype, not the Python built-infloattype.