Hi Matt,<br><br>That addition is working for me on Kraken.  I'm running this test for a number of cores and will report soon.<br><br>Britton<br><br><div class="gmail_quote">On Sun, Jan 15, 2012 at 6:53 AM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com">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 again,<br>
<br>
I've written to the package maintainer, but if you insert this line:<br>
<br>
while fqname[-1] == ".": fqname = fqname[:-1]<br>
<br>
at the top of the function definition __import__module__ inside<br>
MPI_Import.py, it should work for importing yt.mods.  This script<br>
works great for me:<br>
<br>
from MPI_Import import mpi_import<br>
<div class="im">with mpi_import():<br>
    from yt.mods import *<br>
</div><a href="http://mylog.info" target="_blank">mylog.info</a>("Hello")<br>
<br>
I think it's ready to test on Kraken/Janus/etc.<br>
<br>
-Matt<br>
<div class="HOEnZb"><div class="h5"><br>
On Fri, Jan 13, 2012 at 2:31 PM, Matthew Turk <<a href="mailto:matthewturk@gmail.com">matthewturk@gmail.com</a>> wrote:<br>
> Hi all,<br>
><br>
> I was able to test it and find a problem with mutually-recursive<br>
> imports in unittest.  I'll update if I can find a resolution.  For<br>
> analysis_modules it should be okay, as if you access them via amods it<br>
> should already know the location from which to import them.<br>
><br>
> -Matt<br>
><br>
> On Fri, Jan 13, 2012 at 2:29 PM, Stephen Skory <<a href="mailto:s@skory.us">s@skory.us</a>> wrote:<br>
>> Hi Matt,<br>
>><br>
>>> Britton or Stephen, this sounds like it's directly up your alley as<br>
>>> you run on Kraken the most often.<br>
>><br>
>> I can give, but wouldn't this help on all computers, or am I<br>
>> misunderstanding things?<br>
>><br>
>>> from yt.pmods import *<br>
>>><br>
>>> Ideas?<br>
>><br>
>> What about analysis modules that import stuff, too? Like halo finding.<br>
>> I guess I have to read more about this, so that's more of a rhetorical<br>
>> question.<br>
>><br>
>> --<br>
>> Stephen Skory<br>
>> <a href="mailto:s@skory.us">s@skory.us</a><br>
>> <a href="http://stephenskory.com/" target="_blank">http://stephenskory.com/</a><br>
>> <a href="tel:510.621.3687" value="+15106213687">510.621.3687</a> (google voice)<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>
_______________________________________________<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>
</div></div></blockquote></div><br>