We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccbc959 commit 3eeb790Copy full SHA for 3eeb790
yt/visualization/tests/test_offaxisprojection.py
@@ -317,9 +317,11 @@ def test_two_offaxis():
317
318
# define a new yt velocity field relative to the bulk velocity of the halo and along the line of sight
319
def _velocity_los_test(field, data):
320
- v = np.stack([data["gas", f"velocity_{k}"] for k in "xyz"], axis=-1)
+ v = np.stack(
321
+ [data["gas", f"velocity_{k}"].to("km/s").d for k in "xyz"], axis=-1
322
+ )
323
v_los = np.dot(v, los_unit_vector)
- return v_los.to("km/s")
324
+ return v_los
325
326
ds.add_field(
327
("gas", "velocity_los_test"),
0 commit comments