<div dir="ltr">What are the key things that `yt.mods` will do that `yt` will not under this model? As a new user I did find the yt.mods thing a little strange. :p<br><br>Stuart<br></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On 18 March 2014 14:20, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Hi all,<br>
<br>
Some of this was hashed out before on the YTEP-0019 discussion, but I<br>
am going through and re-implementing some of that now and I wanted to<br>
bring it back to the group.<br>
<br>
What we had come up with was:<br>
<br>
 * import yt => gets most of the items used in yt in the main namespace<br>
 * import yt.mods => treats yt more like an application, gets<br>
everything but *also* does "startup tasks"<br>
<br>
Now, the big benefit to making it like this is that you can do:<br>
<br>
import yt<br>
<br>
and get everything.  The *downside* is that we will no longer be able to do:<br>
<br>
import yt.something.something_else<br>
<br>
and *avoid* importing all of yt.  I've experimented with the import<br>
times and came up with this.  All times were computed by running 10<br>
cycles, dividing total time by 10.<br>
<br>
 * 2.6 (current @ bookmark) => 0.45s per import<br>
 * 3.0, "development" => 0.47s per import<br>
 * My YTEP-0019 bookmark => 0.97s per import<br>
 * Import numpy and matplotlib => 0.22s per import<br>
 * Importing numpy, matplotlib, *and* sympy => 0.78s per import<br>
<br>
So I think we're doing okay on import times, although I must confess<br>
when I initial ran it and saw how slow importing the unitrefactor<br>
branch was I was a bit worried.  But most of that is sucked up into<br>
numpy, matplotlib and sympy.  I guess it's not so bad.<br>
<br>
Here's my PR:<br>
<br>
<a href="https://bitbucket.org/yt_analysis/yt/pull-request/729/ytep-0019/diff" target="_blank">https://bitbucket.org/yt_analysis/yt/pull-request/729/ytep-0019/diff</a><br>
<br>
(bookmark: ytep0019, which I will delete later.)<br>
<br>
-Matt<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
</blockquote></div><br></div>