<html><body>
<p>New issue 1197: YTPositionArray doesn't work <a href="https://bitbucket.org/yt_analysis/yt/issues/1197/ytpositionarray-doesnt-work">https://bitbucket.org/yt_analysis/yt/issues/1197/ytpositionarray-doesnt-work</a></p>
<p>Matthew Turk:</p>
<p>I don't think this is explicitly the fault of `YTArray`, but I don't know how to get around it.  Right now, creating a `yt.data_objects.octree_subset.YTPositionArray` just returns `YTArray`.  I'm not sure how to make sure that it returns the right class, but I suspect something in the `YTArray` code doesn't pass down subclasses.  (It used to, I promise!)</p>
<p>Here's example code:</p>
<p>``` import yt from yt.data_objects.octree_subset import YTPositionArray ds = yt.load("enzo_tiny_cosmology/DD0043/DD0043") pos = ds.r["particle_position"] ppos = YTPositionArray(pos) ```</p>
<p>At this point, `ppos` should have `to_octree` as a method, but it doesn't.  Not sure how to fix this — @ngoldbaum do you know how I could make sure that the subclass is correctly handled?</p>
<p>Responsible: MatthewTurk</p>

<img src="http://link.bitbucket.org/wf/open?upn=JlBWjyZTyKwhM1rBKe-2BcAdFPwdECN4PBooLGVSVl7EI-2BJCpmvB5FNwyVE08KMyUKOkU1bZ1OGX0lzeYGH4005HALuhqHEvW460S8aTjRI3QX54A-2FmkNUEt4IKsMKXUsA-2F-2FEdLFykA-2FhPrXfriWoyNC-2FiWOK4DbzOoszMLDFT334kCXD3SNS0iPM8W077Gh5nBGvaNfaCVaHnFt7Iyhhp3RK9CYyemn6N6-2FpE1w-2FDDxg-3D" alt="" width="1" height="1" border="0" style="height:1px !important;width:1px !important;border-width:0 !important;margin-top:0 !important;margin-bottom:0 !important;margin-right:0 !important;margin-left:0 !important;padding-top:0 !important;padding-bottom:0 !important;padding-right:0 !important;padding-left:0 !important;"/>
</body></html>