-
Notifications
You must be signed in to change notification settings - Fork 15
feature/add_schroeder_frequency_function #101
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
base: develop
Are you sure you want to change the base?
Conversation
… the extra delicous schroeder frequency.
mjasins
left a comment
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.
Thank You for Your brilliant contribution. We have spotted some minor changes, that You should make to match the project convention.
pyrato/parametric.py
Outdated
| Parameters | ||
| ---------- | ||
| V : float, np.ndarray |
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.
Please follow the variable naming convention adopted in the project, i.e.:
volume (double) – Room volume
reverberation_time (double) - Reverberation Time of a room
pyrato/parametric.py
Outdated
| function which calculates the Schroeder frequency. The cut-off | ||
| frequency for modes. | ||
| Approved by Monty Python Flying Circus. |
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.
We appreciate Your sense of humour, although this should be a serious scientific documentation.
pyrato/parametric.py
Outdated
|
|
||
| def schroeder_frequency(V, T): | ||
| r""" | ||
| function which calculates the Schroeder frequency. The cut-off |
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.
Please, change the sentence to: Calculate the Schroeder cut-off frequency of a room
| r""" | ||
| function which calculates the Schroeder frequency. The cut-off | ||
| frequency for modes. | ||
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.
Please add the source - the citation is broken
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.
nice hint, but we don´t know how ... seems as broken as for energy_decay_curve_analytic function below.
pyrato/parametric.py
Outdated
| Returns | ||
| ------- | ||
| schroeder_freq : float, np.ndarray |
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 documentation return statement does not match the actual return variable name. Please repair and change to schroeder_frequency according to convention
|
Hey, thanks for your contribution. Could you please update the title of the PR to be more concise? |
ahms5
left a comment
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.
Thank you for your contribution. I already looks very good.
I have just one suggestion to raise errors if the input parameters are not as expected
| .. [#] H. Kuttruff, Room acoustics, 4th Ed. Taylor & Francis, 2009. | ||
| """ | ||
|
|
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.
here we could raise error, if the input parameters of the function are not valid. See the Guidelines
JudithvE
left a comment
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.
Thank you for your kind pull request. We could not have done this better. 👍
Don't forget to add a validation check for the input parameters 😄
| .. [#] H. Kuttruff, Room acoustics, 4th Ed. Taylor & Francis, 2009. | ||
| """ | ||
|
|
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.
Maybe you can do a validation check of the input parameters. For example, the volume needs to be greater than zero. 🔢
mjasins
left a comment
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.
Thank You for the submission, the tests are really good.
Which issue(s) are closed by this pull request?
Closes #88. implementation of Schroeder frequency....
Changes proposed in this pull request: