[yt-svn] commit/yt: 2 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Thu Aug 20 09:26:12 PDT 2015
2 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/e3431f1b2c0e/
Changeset: e3431f1b2c0e
Branch: yt
User: mornkr
Date: 2015-08-08 08:26:14+00:00
Summary: Fixing a bug where "center" vectors are used instead of "normal" vectors in get_sph_phi(), get_sph_theta(), and get_cyl_theta() in fields/particle_fields.py.
Affected #: 1 file
diff -r 57abf679467c2b46098177a6662cc507c173395b -r e3431f1b2c0e79aead7e6f1b7ad183b29e66f308 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)
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