<font><span style="background-color:rgba(255,255,255,0)">Claire,</span></font><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I remember running into this issue when I first started. I don't remember why this had happened but it had to do with setting the initial and final redshift both to zero. </span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">I don't have access to my computer at the moment, but I believe my workaround was setting zmin and zmax both to a nonzero value. For the value I picked, I just took the distance to the center of my ray and converted to a redshift. This was Ok for me since ultimately redshift for what I was doing was arbitrary. It may not work for you. </span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Alternatively, you could try setting zmin to zero and zmax to the redshift corresponding to the distance away from the initial start point (I.e. length of the ray). This may or may not work in your situation. </span></font></div>
<div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)">Hope this helps. </span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br>
</span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><div><font><span style="background-color:rgba(255,255,255,0)"><br></span></font></div><font><span style="background-color:rgba(255,255,255,0)">Andrew Emerick</span></font><div>
<font><span style="background-color:rgba(255,255,255,0)"></span></font> Sunday, January 12, 2014, Claire Kopenhafer  wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello out there, I'm trying to create a LightRay object for an enzo sim. I get this error message:<div><div><br></div><div><font face="courier new, monospace">Traceback (most recent call last):</font></div>

<div><font face="courier new, monospace">  File "<stdin>", line 1, in <module></font></div><div><font face="courier new, monospace">  File "/data/codes/yt-x86_64/src/yt-hg/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py", line 117, in __init__</font></div>

<div><font face="courier new, monospace">    redshift_data=redshift_data)</font></div><div><font face="courier new, monospace">  File "/data/codes/yt-x86_64/src/yt-hg/yt/analysis_modules/cosmological_observation/cosmology_splice.py", line 119, in create_cosmology_splice</font></div>

<div><font face="courier new, monospace">    cosmology_splice.append({'time': self.simulation[0].current_time,</font></div><div><font face="courier new, monospace">  File "/data/codes/yt-x86_64/src/yt-hg/yt/data_objects/time_series.py", line 117, in __getitem__</font></div>

<div><font face="courier new, monospace">    o = self._pre_outputs[key]</font></div><div><font face="courier new, monospace">IndexError: list index out of range</font></div><div><br></div><div>The nearest and farthest redshift are both 0, which is the current redshift of the dataset I was given. This may or may not have any bearing on the problem. Thanks for the help!</div>

<div><br></div><div><div dir="ltr">-Claire Kopenhafer</div></div>
</div></div>
</blockquote></div><br><br>-- <br><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">
Department of Astronomy</div></div><br>