[yt-users] 1D matter power spectrum

Stephen Skory stephenskory at yahoo.com
Tue Mar 8 07:01:52 PST 2011


Geoffrey,

> from yt.mods import *
> from yt.utilities.kdtree import *
> amods.two_point_functions.TwoPointFunctions


What Matt meant is that you have the option of doing something like this:

from yt.mods import *
tpf = amods.two_point_functions.TwoPointFunctions(pf, ....)

Or something like this:

from yt.mods import *
from yt.analysis_modules.two_point_functions.api import *
tpf = TwoPointFunctions(pf, .....)

I apologize that the examples in the documentation have not been updated to reflect this. I'll fix that.

Also - in checking for your problem I noticed that another extension import slipped through the cracks in the 2.0 module renaming, so you should update your yt one more time.

 
Stephen Skory
stephenskory at yahoo.com
http://stephenskory.com/
510.621.3687 (google voice)




More information about the yt-users mailing list