[yt-svn] commit/yt: chummels: Fixing bug with redshift calculation in LightRay analysis module. Forgot a 1!
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 5 05:44:59 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/3f2c5cceb57b/
Changeset: 3f2c5cceb57b
Branch: yt
User: chummels
Date: 2015-10-05 03:38:06+00:00
Summary: Fixing bug with redshift calculation in LightRay analysis module. Forgot a 1!
Affected #: 1 file
diff -r b7afd79a9820e8605a1e73c5d3d7a077cae7fe96 -r 3f2c5cceb57bcc022dd7a8363c793c09bf89f24d yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
--- a/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
+++ b/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py
@@ -476,8 +476,8 @@
sub_data['velocity_los']
redshift_dopp = ((1 + velocity_los_cm / speed_of_light_cgs) /
(1 - velocity_los_cm / speed_of_light_cgs))**(0.5) - 1
- sub_data['redshift_eff'] = (1 + redshift_dopp) * \
- (1 + sub_data['redshift'])
+ sub_data['redshift_eff'] = ((1 + redshift_dopp) * \
+ (1 + sub_data['redshift'])) - 1
del velocity_los_cm, redshift_dopp
# Remove empty lixels.
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list