<div dir="ltr">Hi all,<div><br></div><div>Thanks for the responses!  Okay, before I jump to trying Cameron's solution, here is my problem.  The error message:</div><div><br></div><div><div>Traceback (most recent call last):</div><div>  File "yt_arbgridtest.py", line 36, in <module></div><div>    tracerp = galgas['tracerf']</div><div>  File "/home/stonnes/yt/yt/data_objects/data_containers.py", line 272, in __getitem__</div><div>    self.get_data(f)</div><div>  File "/home/stonnes/yt/yt/data_objects/construction_data_containers.py", line 627, in get_data</div><div>    if len(fill) > 0: self._fill_fields(fill)</div><div>  File "/home/stonnes/yt/yt/data_objects/construction_data_containers.py", line 816, in _fill_fields</div><div>    assert(len(fields) == 1)</div><div>AssertionError</div></div><div><br></div><div>Attached is a test run showing the problem with the IsolatedGalaxy dataset.  I also make a cut region with the exact same variables as the user defined field, so I think it is pretty clearly something off with the arbitrary grid functionality.</div><div><br></div><div>Best,</div><div>Stephanie</div><div><br></div><div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
<br><div class="gmail_quote">On Tue, Aug 8, 2017 at 5:41 AM, 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><div dir="auto">Echoing Matt here, can you make a test script that triggers the issue you're seeing, preferably using one of the public test datasets on <a href="http://yt-project.org/data" target="_blank">yt-project.org/data</a>?</div><div><div class="h5"><br><div class="gmail_quote"><div>On Tue, Aug 8, 2017 at 6:05 AM Matthew Turk <<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto">Hi Stephanie,<div dir="auto"><br></div><div dir="auto">What's the error you get?</div><div dir="auto"><br></div><div dir="auto">Matt</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Aug 8, 2017 12:15 AM, "Stephanie Tonnesen" <<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a>> wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Hi yt-users!<div><br></div><div>I have a simulation run on Enzo that has a best resolution cell size of ~40 pc.  I would like to be able to compare my run to observations that are at a resolution of ~200 pc.  I want to save a bunch of data in a fits file with that resolution.  It looks like the way to do this is to create an arbitrary_grid object.  If someone has a better method, please tell me!</div><div><br></div><div>So I have my artbitrary_grid object, and I am making arrays of fields:</div><div><br></div><div>xp = arbgridobj['x']</div><div>...etc....</div><div><br></div><div>xp = np.array(xp)</div><div>...etc...</div><div><br></div><div>my code keeps crashing when I try to get a user-defined field for my arbitrary_grid object.  If I try to get the field for a cut_region my code runs just fine.  Is user-defined fields + arbitrary_grid objects just something that yt can't do or is there some different way to make this happen than in a cut_region?  </div><div><br></div><div>Thanks!!</div><div><br></div><div>Best,</div><div>Stephanie</div><div><br clear="all"><div><div class="m_4641317586802380763m_-5342981824932654710m_3507343710000758930gmail_signature" data-smartmail="gmail_signature"><div><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div><font face="garamond,serif">Alvin E. Nashman Postdoctoral Fellow<br></font></div><font face="garamond,serif">Carnegie Observatories, Pasadena, CA<br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div>
</div></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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></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/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
</blockquote></div></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>