<div dir="ltr"><div>It looks like you created a new github account to create that issue, so just in case you don't have your notifications set up, I commented on the issue here:</div><div><br></div><div><a href="https://github.com/yt-project/yt/issues/1565#issuecomment-331484604">https://github.com/yt-project/yt/issues/1565#issuecomment-331484604</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Sep 22, 2017 at 3:56 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:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div>Hi Nathan,<br><br></div>Thanks for getting back to me. Yes the array is read is fine and "data" stores the array as it should. The problem appears at the masking stage. It seems the mask selects just the first element. I'm not sure what the workaround is in the case regarding the masking so I'll open an issue on github for this. I'll create small dataset that reproduces in the problem. <br><br></div>Cheers,<br></div>John<br></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Thu, Sep 21, 2017 at 4:03 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"><div>Hi John,</div><div><br></div><div>The I/O operation is happening here:</div><div><br></div><div><a href="https://github.com/yt-project/yt/blob/master/yt/frontends/enzo/io.py#L92" target="_blank">https://github.com/yt-project/<wbr>yt/blob/master/yt/frontends/en<wbr>zo/io.py#L92</a></div><div><br></div><div>Here, if you are reading an active particle field, "pds" is a handle to the hdf5 dataset containing the active particle data. The array that we're going to read the particle data into is allocated on line 110. It looks to me like "data" should be multidimensional if the on-disk data are, but perhaps we're doing something further along the line that is causing the issue you're seeing.</div><div><br></div><div>If you get stuck, feel free to open an issue on github about this. If you do so please include a sample dataset and a script to trigger the issue so one of us can reproduce and debug.</div><div><br></div><div>-Nathan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="m_-3785056494277503700h5">On Thu, Sep 21, 2017 at 9:41 AM, John Regan <span dir="ltr"><<a href="mailto:johnanthonyregan@gmail.com" target="_blank">johnanthonyregan@gmail.com</a>></span> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="m_-3785056494277503700h5"><div dir="ltr"><div><div><div><div><div><div><div>Hi All, <br><br></div>I'm hoping to modify YT to read in arrays from ActiveParticle fields. I have an array which is part of the AP data structure. At the moment YT sees the field but only reads the first element which kinda makes sense. <br><br></div>Just wondering how I can modify the source code so that YT realised that a field is in fact an array and to read in all the values?<br><br></div>At the moment YT is also complaining with the message:<br>yt/yt/frontends/enzo/io.py:140<wbr>: VisibleDeprecationWarning: boolean index did not match indexed array along dimension 0; dimension is 20 but corresponding boolean dimension is 1<br><br></div>which is because of course the field is an array of length 20 rather than a scalar. <br><br></div>Any tips on what is required? I am looking on io.py at the _read_particle_fields function and I imagine it is this function that needs modification?<br><br></div>Cheers,<br></div>John<br></div>
<br></div></div>______________________________<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>
<br>______________________________<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.<wbr>org</a><br>
<br></blockquote></div><br></div>
</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>