yt.units.unit_object.Unit.same_dimensions_as

Unit.same_dimensions_as(other_unit)[source]

Test if dimensions are the same.