<div dir="ltr">Good idea Mike!  I'll do that too.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Apr 10, 2014 at 7:39 PM, Mike Warren <span dir="ltr"><<a href="mailto:mswarren@gmail.com" target="_blank">mswarren@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">You could detect that it is not a tipsy file quickly, by using the<br>
constraint in the header that nbodies=nsph+ndark+nstar and ndim is<br>
presumably 1,2 or 3.<br>
<br>
struct tipsy_dump {<br>
    double time;<br>
    int nbodies;<br>
    int ndim;<br>
    int nsph;<br>
    int ndark;<br>
    int nstar;<br>
<div class="im HOEnZb">};<br>
<br>
<br>
On Thu, Apr 10, 2014 at 5:32 PM, B.W. Keller <<a href="mailto:kellerbw@mcmaster.ca">kellerbw@mcmaster.ca</a>> wrote:<br>
</div><div class="HOEnZb"><div class="h5">> Oh my.  Sorry that I have introduced this, unfortunately there is no way to<br>
> detect tipsy files other than actually reading the entire file from disk.<br>
> Perhaps the way to fix this would be to drop the priority of tipsy datasets<br>
> to the bottom, so that a valid FLASH dataset will be detected prior to the<br>
> Tipsy check?<br>
><br>
><br>
> On Thu, Apr 10, 2014 at 7:15 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>><br>
> wrote:<br>
>><br>
>> Hi all,<br>
>><br>
>> We just had a bug report from Aaron Smith at UT Austin.  The symptom is<br>
>> that the "load" comman was taking 30 seconds to complete on his FLASH<br>
>> dataset, which should never happen for FLASH.<br>
>><br>
>> After asking him to profile the code, he produced the following profile:<br>
>><br>
>> <a href="http://ngoldbaum.net/yt-load/" target="_blank">http://ngoldbaum.net/yt-load/</a><br>
>><br>
>> It seems that the recent changes to the Tipsy frontend which allow it to<br>
>> autodetect binary outputs have made it so in some cases non-tipsy data is<br>
>> loaded off disk.<br>
>><br>
>> I'm not sure about the best way to handle this, which is why I'm writing<br>
>> to the list rather than issuing a PR.<br>
>><br>
>> -Nathan<br>
>><br>
><br>
><br>
</div></div><div class="HOEnZb"><div class="h5">> _______________________________________________<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>
_______________________________________________<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></div>