-
Notifications
You must be signed in to change notification settings - Fork 145
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
Fix dopplerFactor #79
Conversation
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.
@Alesha72003 @thkruz @shashwatak dopplerFactor
function is not covered by any tests. Could you write a couple of simple tests for it in order to not break it in the future?
I tried making tests but not sure if they are simple.
|
@Alesha72003 I think that your tests are more than fine. First of all, I meant that we need to improve test coverage and having some tests for The last thing I want to be fixed is to use |
what value of |
Let's take 8 digits, I think it will be enough. |
All right? |
@Alesha72003 Great! Just published 4.1.3. Give it a try! |
This is my first pull request. I may be doing something wrong
English is not my native language
This commit fixes the computation of the Doppler effect.
DopplerFactor
now takes into account the observer's movement.Before changes:
After changes:
Code used: