Dear yt users,
I just updated yt to 4.0.1 and now I get this error message when trying to
run enzo-mrp-music.py from John Wise on
https://github.com/jwise77/enzo-mrp-music.
Traceback (most recent call last):
File "enzo-mrp-music/enzo-mrp-music.py", line 264, in <module>
params = find_lagrangian_region(params)
File "enzo-mrp-music/enzo-mrp-music.py", line 177, in
find_lagrangian_region
get_center_and_extent(params["halo_info"],
File "enzo-mrp-music/get_halo_initial_extent.py", line 147, in
get_center_and_extent
halo_indices, halo_com, shifted = get_halo_indices(my_halo,
final_dataset,
File "enzo-mrp-music/get_halo_initial_extent.py", line 119, in
get_halo_indices
get_halo_sphere_particles(my_halo, dataset, radius_factor=radius_factor)
File "enzo-mrp-music/get_halo_initial_extent.py", line 73, in
get_halo_sphere_particles
my_sphere = pf.h.sphere(my_halo_data['center'], radius_factor * r_200)
AttributeError: 'EnzoDataset' object has no attribute 'h'
I am honestly not sure what the attribute 'h' does in this case, so I
didn't know what to try to adjust. Any suggestions for getting around this?
Or how can I go back to yt 3?
Kind regards,
--
Carla Bernhardt
PhD Student
Universität Heidelberg
ZAH Institut für Theoretische Astrophysik
yt 4.1.3 is out with an important patch for everyone who cares about particles ! see the release notes on github for details https://github.com/yt-project/yt/releases/tag/yt-4.1.3
Happy holidays
Clément, on behalf of the yt team