<div dir="ltr">Hi Stephanie,<div><br></div><div>The light_ray_solution attribute associated with your LightRay object contains a list of dictionaries with "start" and "end" entries (among others) for each segment of the LightRay.  Before you look at it, I suggest adding the following bit of code to your script:</div><div><font face="monospace, monospace"><br></font></div><div><div><font face="monospace, monospace">for sl in lr.light_ray_solution:</font></div><div><font face="monospace, monospace">     del sl["next"]</font></div><div><font face="monospace, monospace">     del sl["previous"]</font></div></div><div><br></div><div>This will remove the pointers that refer to the next and previous segments of the light_ray_solution.  If you don't remove those, printing out that object will be like looking at yourself in a hall of mirrors.  Give it a try.</div><div><br></div><div>As for your ultimate goal of trying to make light rays that span some redshift range but only use the high resolution region of the box, I managed to make this work for myself in the past.  It was a bit of a hack so I never ended up adding it to the main repository.  However, if you'd like to try working with what I did, feel free to contact me off-list and we can work together to make it happen and perhaps even clean up that code and add it to the main repo.</div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jul 13, 2016 at 7:34 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 dir="ltr">Hi Stephanie,<div><br></div><div>Looking at the code, I think what you're looking for is the light_ray_solution list, which is attached to the LightRay object. I just tried running this cookbook script:</div><div><br></div><div><a href="http://yt-project.org/docs/dev/cookbook/cosmological_analysis.html#light-ray" target="_blank">http://yt-project.org/docs/dev/cookbook/cosmological_analysis.html#light-ray</a><br></div><div><br></div><div>And afterwards inspected the light_ray_solution list:</div><div><br></div><div><a href="https://paste.yt-project.org/show/6676/" target="_blank">https://paste.yt-project.org/show/6676/</a><br></div><div><br></div><div>In this context 'lr' is a light ray object.</div><div><br></div><div>I would also encourage you to look at the source code, as that's probably the best source of truth for this as the docs seem to be a little minimal:</div><div><br></div><div><a href="https://bitbucket.org/yt_analysis/yt/src/5e50ddf62454f276c63fc939ab6aa96cceefc817/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py?at=yt&fileviewer=file-view-default" target="_blank">https://bitbucket.org/yt_analysis/yt/src/5e50ddf62454f276c63fc939ab6aa96cceefc817/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py?at=yt&fileviewer=file-view-default</a><br></div></div><div class="gmail_extra"><br><div class="gmail_quote"><div><div class="h5">On Tue, Jul 12, 2016 at 10:37 PM, Stephanie Tonnesen <span dir="ltr"><<a href="mailto:stonnes@gmail.com" target="_blank">stonnes@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="h5"><div dir="ltr"><div><div><div><div><div><div>Hi yt-users, <br><br></div>I have a somewhat strange goal using lightray.  I have a large box, 120 Mpc/h on a side, but only a portion of it is highly resolved (about 25 Mpc/h on a side).  I want to create a set of lightrays that span a small, constant z range and only cross the refined region of the box.  <br><br></div>So right now I am using the cosmology LightRay call so that I can set the redshift range, and would like to be able to take a look at the start and stop positions of the lightray that is created, and not just in the output dump of the run.  What command can I use to make those positions into a variable in my code?  I tried<br><br></div>lr.start_position, but that doesn't exist.  <br><br></div>Any help is appreciated!  <br><br></div>Thanks,<br></div>Stephanie<br><br clear="all"><div><div><div><div><div><div><div><div><div 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>
</div></div></div></div></div></div></div></div>
<br></div></div>_______________________________________________<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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________<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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>