yt_arr = YTArray([])
for i in range(10):
yt_arr.append(i)
This particular type of code returns an error saying that YTArray has no attribute append. So how do I append values in the array?
yt_arr = YTArray([])
for i in range(10):
yt_arr.append(i)
This particular type of code returns an error saying that YTArray has no attribute append. So how do I append values in the array?
You can append the contents to a
listand later convert it to aYTArrayobject.