yt.units.yt_array.YTArray.from_astropy

classmethod YTArray.from_astropy(arr)[source]

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