yt.data_objects.profiles.ProfileND.set_field_unit

ProfileND.set_field_unit(field, new_unit)[source]

Sets a new unit for the requested field

Parameters:

field : string or field tuple

The name of the field that is to be changed.

new_unit : string or Unit object

The name of the new unit.