[yt-users] yt.mods
Matthew Turk
matthewturk at gmail.com
Fri Jun 27 14:46:40 PDT 2008
Hi guys,
I've added a new preferred entry point for yt. Instead of importing
all the cruftily named submodules, almost everything you can think of
is taken care of with:
from yt.mods import *
That will get you:
numpy -> na
yt.lagos -> lagos
yt.raven -> raven
plus all the static outputs, clumps, fields, the profiles, plot
collections, callbacks, 3d stuff and even the fido entry points.
For more info:
http://yt.enzotools.org/browser/trunk/yt/mods.py
Also, if you want to write a script that accepts a parameter file as
an argument, now the preferred way of doing that is:
>>
from yt.mods import *
pf = get_pf()
[do stuff]
<<
get_pf takes the last command line argument and turns it into an
EnzoStaticOutput. So now, your scripts can be commandline standalones
with just two lines of boilerplate code.
-Matt
More information about the yt-users
mailing list