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_spectrum_example.py

There are instructions for how to make a pull request in our contributor's guide:

https://yt-project.org/doc/developing/developing.html#making-and-sharing-changes

On Mon, Jun 3, 2019 at 3:17 PM Salome Mtchedlidze <salomchedlidze@gmail.com> wrote:
Hello again,

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.

Thanks,
Salome
_______________________________________________
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org