You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Doing the following simple grep on all the DESI packages, maybe there are other I have not thought of:
grep '2\.99' -ri * --include \*.py
grep '299' -ri * --include \*.py
grep '3e5' -ri * --include \*.py
grep '3e8' -ri * --include \*.py
grep '299792458' -ri * --include \*.py
grep '2\.99792458' -ri * --include \*.py
It shows that different definition of the speed of light is used in the overall desi packages.
It would be very useful to have every package use the same from scipy.constants import speed_of_light or c = 299792458.. This would allow consistency comparison and better definite results.
For Lyman-alpha this also has the possible impact of shifting the Lyman-alpha x QSO cross-correlation along the line-of-sight.
[edit] add option -i
The text was updated successfully, but these errors were encountered:
try:
from scipy import constants
C_LIGHT = constants.c/1000.0
except TypeError: # This can happen during documentation builds.
C_LIGHT = 299792458.0/1000.0
Doing the following simple grep on all the DESI packages, maybe there are other I have not thought of:
grep '2\.99' -ri * --include \*.py
grep '299' -ri * --include \*.py
grep '3e5' -ri * --include \*.py
grep '3e8' -ri * --include \*.py
grep '299792458' -ri * --include \*.py
grep '2\.99792458' -ri * --include \*.py
It shows that different definition of the speed of light is used in the overall desi packages.
It would be very useful to have every package use the same
from scipy.constants import speed_of_light
orc = 299792458.
. This would allow consistency comparison and better definite results.For Lyman-alpha this also has the possible impact of shifting the Lyman-alpha x QSO cross-correlation along the line-of-sight.
[edit] add option
-i
The text was updated successfully, but these errors were encountered: