-
Notifications
You must be signed in to change notification settings - Fork 5
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
Speed of light should be from scipy.constants #58
Comments
It seems to explain part of the shift of #41
|
@jfarr03, There might be other places where the speed of light is defined that I have not found. |
@londumas the speed of light isn't used anywhere explicitly in LyaCoLoRe's scripts to produce the mocks - the instance you found isn't used anywhere other than very old examples. I'll correct it nonetheless but it won't be affecting the realisations. It is almost certainly used in CoLoRe somewhere, though, so I'll have to check exactly what is used there. |
Ok. Could you send the link to the CoLoRe code ?
|
@jfarr03, is that the one: https://github.com/damonge/CoLoRe? |
Doing some |
Yes sorry that's the right link - it seems like it's ok but you're right, the units are odd! |
I just open a ticket there: damonge/CoLoRe#38 to better understand what it is. |
@jfarr03, could you fix the following line, and then we can close: |
@jfarr03, thanks |
The speed of light should be
299792458.0
everywhere, there are no reason to make an approximation. Also it can produce such shift of the correlation function, see issue #41.The best way is to use
from scipy.constants import speed_of_light
, in order not to hard code it nor to cast it to smaller precision.Doing simple grep, I get:
This ticket is linked to this more general one: desihub/desisim#477
The text was updated successfully, but these errors were encountered: