From 4e49b40efab7dc794615d0c9f1e709990bda8526 Mon Sep 17 00:00:00 2001 From: Cameron Hummels Date: Thu, 19 Dec 2024 15:32:08 -0800 Subject: [PATCH] Adding profile test for SPH with weight_field --- yt/data_objects/tests/test_profiles.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/yt/data_objects/tests/test_profiles.py b/yt/data_objects/tests/test_profiles.py index b68f2fb55e1..6a8245c34de 100644 --- a/yt/data_objects/tests/test_profiles.py +++ b/yt/data_objects/tests/test_profiles.py @@ -534,6 +534,12 @@ def test_profile_sph_data(): [("gas", "kinetic_energy_density")], weight_field=None, ) + yt.create_profile( + ds.all_data(), + [("gas", "density"), ("gas", "temperature")], + [("gas", "kinetic_energy_density")], + weight_field=("gas", "density"), + ) def test_profile_override_limits():