<div dir="ltr"><div><div><div><div>Hi Nathan , <br><br></div>Thanks for the email. If I sent you the exact hdf5 file (i.e. the .cpuXXXX file) would that would and the traceback? You could see the format the array gets written then....<br><br></div>It wasn't clear to me from reading through the YT reader would work.<br><br></div>Cheers,<br></div>John<br><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 3:43 PM, Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><br><div class="gmail_extra"><span class=""><br><div class="gmail_quote">On Thu, Jan 11, 2018 at 3:43 AM, John Regan <span dir="ltr"><<a href="mailto:johnanthonyregan@gmail.com" target="_blank">johnanthonyregan@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr"><div><div><div><div><div><div><div>Hi All, <br><br></div>I'm trying to get YT to read a vector which is stored as part of particle structure in Enzo (a vector in the active particle structure). The data looks OK when I view the raw HDF5 data using hdfview. I find that in some snapshots YT can read the data but not in others. If there is more than one particle things get worse for sure. <br><br></div>It could be that when writing to the HDF5 file I haven't put the data in a format that is compatible with YT. <br><br></div>I've attached a simple script that will fall over when trying to read the data and a link to the enzo output (size = 12 GBs). The active particles are in files DD0120.cpu0022 (Grid 3072), DD0120.cpu0023 (Grid 3076) and DD0014 (Grid 3080). YT falls over in the io_handler but it's not obvious to me whether I need to modify that code or the format that I write the data to the HDF5 file in. <br></div></div></div></div></div></blockquote><br></div></span><div class="gmail_quote">It's hard to say if there's an issue on the Enzo side or the yt side without a copy of the traceback you are seeing or a way to reproduce the issue. I'm also not sure what your data format looks like offhand. If I remember correctly, you added support for vector active particle attributes to your fork of Enzo and it's entirely possible that there needs to be updates on the yt side to support reading the data from your fork.<br></div><div class="gmail_quote"><br>I suspect the place you need to modify in yt is here:<br><div><br><a href="https://github.com/yt-project/yt/blob/eb3358c622bc047200b9bc6a954ddee8f59a0e07/yt/frontends/enzo/io.py#L92-L113" target="_blank">https://github.com/yt-project/<wbr>yt/blob/eb3358c622bc047200b9bc<wbr>6a954ddee8f59a0e07/yt/<wbr>frontends/enzo/io.py#L92-L113</a><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><span class=""><div dir="ltr"><div><div><div><div><br></div>Any help/pointers would be much appreciated. <br><br></div>Cheers,<br></div>John<br><br></div>Link to dataset:<br><a href="https://www.dropbox.com/sh/o6acuvia1sqyp7y/AAC0lEI5lZ6bGa0tP2-G1jLea?dl=0" target="_blank">https://www.dropbox.com/sh/o6a<wbr>cuvia1sqyp7y/AAC0lEI5lZ6bGa0tP<wbr>2-G1jLea?dl=0</a><br></div>
<br></span>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.o<wbr>rg</a><br>
<br></blockquote></div><br></div></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div></div></div></div></div>