You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
File "/Users/chummels/scratch/test_weight_field.py", line 4, in <module>
plot = yt.PhasePlot(my_sphere, ("gas", "density"), ("gas", "temperature"), [("gas", "H_p0_fraction")], weight_field=('gas', 'density'))
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Users/chummels/src/yt/yt/visualization/profile_plotter.py", line 953, in __init__
profile = create_profile(
^^^^^^^^^^^^^^^
File "/Users/chummels/src/yt/yt/data_objects/profiles.py", line 1317, in create_profile
is_local.append(wf.sampling_type == "local")
^^^^^^^^^^^^^^^^
AttributeError: 'tuple' object has no attribute 'sampling_type'```
**Expected outcome**
The PhasePlot completing successfully and making a PhasePlot output file.
**Version Information**
yt dev tip
The text was updated successfully, but these errors were encountered:
Bug report
Bug summary
PhasePlot fails when a weight_field is set for a particle-based dataset. Note, this does not affect grid-based datasets.
Code for reproduction
Actual outcome
The text was updated successfully, but these errors were encountered: