Yup, that's correct, I believe ref_factors is only defined for boxlib data like that example.
If you'd like to make a pull request to improve that example I think it would be readily accepted. The source code for that example lives here: https://github.com/yt-project/yt/blob/master/doc/source/cookbook/power_spect...
There are instructions for how to make a pull request in our contributor's guide:
On Mon, Jun 3, 2019 at 3:17 PM Salome Mtchedlidze firstname.lastname@example.org wrote:
Apologize, I have just been told that I just need to write instead of
ref = int(np.product(ds.ref_factors[0:max_level])) ,
ref = 2**max_level
since ENZO only refines with the factor of 2.
yt-users mailing list -- email@example.com To unsubscribe send an email to firstname.lastname@example.org