yt.units.yt_array.YTQuantity.from_astropy

YTQuantity.from_astropy(arr)

Creates a new YTArray with the same unit information from an AstroPy quantity arr.