[yt-svn] commit/yt: brittonsmith: Merged in chummels/yt (pull request #1789)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Mon Oct 26 11:52:37 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/2b6c44d4b501/
Changeset: 2b6c44d4b501
Branch: yt
User: brittonsmith
Date: 2015-10-26 18:52:28+00:00
Summary: Merged in chummels/yt (pull request #1789)
LightRay was using reverse of LOS velocity.
Affected #: 1 file
diff -r 75c9b92eb87a6e379461548c23f3b3902fa2b666 -r 2b6c44d4b501ef1e4fc55959f978ce596cf747c5 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
@@ -441,7 +441,8 @@
sub_vel = ds.arr([sub_ray['velocity_x'],
sub_ray['velocity_y'],
sub_ray['velocity_z']])
- sub_data['velocity_los'].extend((np.rollaxis(sub_vel, 1) *
+ # line of sight velocity is reversed relative to ray
+ sub_data['velocity_los'].extend(-1*(np.rollaxis(sub_vel, 1) *
line_of_sight).sum(axis=1)[asort])
del sub_vel
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