[yt-svn] commit/yt: xarthisius: Merged in mornkr/yt (pull request #1684)
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Aug 20 09:26:14 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/d7969f97265f/
Changeset: d7969f97265f
Branch: yt
User: xarthisius
Date: 2015-08-20 16:26:03+00:00
Summary: Merged in mornkr/yt (pull request #1684)
Fixing a bug where "center" vectors are used instead of "normal" vectors in get_sph_phi(), etc.
Affected #: 1 file
diff -r cc82a477e7c8f8427f2b34a1db14abde4ecca5ea -r d7969f97265f2820654bbc6f23e933983fd749c6 yt/fields/particle_fields.py
--- a/yt/fields/particle_fields.py
+++ b/yt/fields/particle_fields.py
@@ -490,8 +490,8 @@
bv = data.get_field_parameter("bulk_velocity")
pos = data.ds.arr([data[ptype, spos % ax] for ax in "xyz"])
vel = data.ds.arr([data[ptype, svel % ax] for ax in "xyz"])
- theta = get_sph_theta(pos, center)
- phi = get_sph_phi(pos, center)
+ theta = get_sph_theta(pos, normal)
+ phi = get_sph_phi(pos, normal)
pos = pos - np.reshape(center, (3, 1))
vel = vel - np.reshape(bv, (3, 1))
sphr = get_sph_r_component(vel, theta, phi, normal)
@@ -533,8 +533,8 @@
bv = data.get_field_parameter("bulk_velocity")
pos = data.ds.arr([data[ptype, spos % ax] for ax in "xyz"])
vel = data.ds.arr([data[ptype, svel % ax] for ax in "xyz"])
- theta = get_sph_theta(pos, center)
- phi = get_sph_phi(pos, center)
+ theta = get_sph_theta(pos, normal)
+ phi = get_sph_phi(pos, normal)
pos = pos - np.reshape(center, (3, 1))
vel = vel - np.reshape(bv, (3, 1))
spht = get_sph_theta_component(vel, theta, phi, normal)
@@ -568,7 +568,7 @@
bv = data.get_field_parameter("bulk_velocity")
pos = data.ds.arr([data[ptype, spos % ax] for ax in "xyz"])
vel = data.ds.arr([data[ptype, svel % ax] for ax in "xyz"])
- phi = get_sph_phi(pos, center)
+ phi = get_sph_phi(pos, normal)
pos = pos - np.reshape(center, (3, 1))
vel = vel - np.reshape(bv, (3, 1))
sphp = get_sph_phi_component(vel, phi, normal)
@@ -661,7 +661,7 @@
bv = data.get_field_parameter("bulk_velocity")
pos = data.ds.arr([data[ptype, spos % ax] for ax in "xyz"])
vel = data.ds.arr([data[ptype, svel % ax] for ax in "xyz"])
- theta = get_cyl_theta(pos, center)
+ theta = get_cyl_theta(pos, normal)
pos = pos - np.reshape(center, (3, 1))
vel = vel - np.reshape(bv, (3, 1))
cylr = get_cyl_r_component(vel, theta, normal)
@@ -685,7 +685,7 @@
bv = data.get_field_parameter("bulk_velocity")
pos = data.ds.arr([data[ptype, spos % ax] for ax in "xyz"])
vel = data.ds.arr([data[ptype, svel % ax] for ax in "xyz"])
- theta = get_cyl_theta(pos, center)
+ theta = get_cyl_theta(pos, normal)
pos = pos - np.reshape(center, (3, 1))
vel = vel - np.reshape(bv, (3, 1))
cylt = get_cyl_theta_component(vel, theta, normal)
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