With yt > 4.1, add_field no longer accepts the particle_type arg. Many aspects of gadget front end break as a result:
File "/home/s.lower/powderday/powderday/front_ends/gadget2pd.py", line 340, in gadget_field_add
ds.add_field(('star','metals'), function=_starmetals_00, sampling_type='particle',units="code_metallicity", particle_type=True)
File "/home/s.lower/yt/yt/data_objects/static_output.py", line 1777, in add_field
self.field_info.add_field(
File "/home/s.lower/yt/yt/fields/field_info_container.py", line 394, in add_field
self[name] = DerivedField(
TypeError: __init__() got an unexpected keyword argument 'particle_type'
With yt > 4.1, add_field no longer accepts the
particle_type
arg. Many aspects of gadget front end break as a result: