<div dir="ltr">Hi Fei Li,<div><br></div><div>Since you're primarily trying to use Trident's functionality which wraps around the LightRay class, you should probably direct questions of this nature to the Trident mailing list.  I'll start a discussion there on this topic now and cc you.  </div><div><br></div><div><a href="mailto:trident-project-users@googlegroups.com">trident-project-users@googlegroups.com</a><br></div><div><br></div><div>Cameron</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, May 11, 2016 at 12:06 PM, Fei Li <span dir="ltr"><<a href="mailto:lif.li@mail.utoronto.ca" target="_blank">lif.li@mail.utoronto.ca</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 style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<div>Hello yt users,<br>
<br>
I tried to use the LightRay class to generate a light ray for one of my gridded simulation snapshots. The simulation is from the FIRE project which used a heavily modified version of Gadget-3 called GIZMO written by Phil Hopkins. And the error I got is:
<span>ValueError: need more than 1 value to unpack</span>.<br>
<br>
Here is my script:<br>
<br>
$ python<br>
Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32) <br>
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2<br>
Type "help", "copyright", "credits" or "license" for more information.<br>
Anaconda is brought to you by Continuum Analytics.<br>
Please check out: <a href="http://continuum.io/thanks" target="_blank">http://continuum.io/thanks</a> and <a href="https://anaconda.org" target="_blank">https://anaconda.org</a><br>
>>> import yt<br>
>>> import trident<br>
>>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'<br>
>>> light_ray=trident.LightRay(fn,simulation_type='Gadget')<br>
Traceback (most recent call last):<br>
  File "<stdin>", line 1, in <module><br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/light_ray/light_ray.py", line 152, in __init__<br>
    find_outputs=find_outputs)<br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py", line 34, in __init__<br>
    find_outputs=find_outputs)<br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py", line 153, in simulation<br>
    find_outputs=find_outputs)<br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 75, in __init__<br>
    find_outputs=find_outputs)<br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py", line 414, in __init__<br>
    self._parse_parameter_file()<br>
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 289, in _parse_parameter_file<br>
    param, vals = (i.strip() for i in line.split(None, 1))<br>
ValueError: need more than 1 value to unpack<br>
<br>
Thanks for your help,<br>
<br>
Fei Li<br>
</div>
<p><br>
</p>
</div>
</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><br clear="all"><div><br></div>-- <br><div class="gmail_signature"><div dir="ltr"><div>Cameron Hummels<div><span style="font-size:12.8000001907349px">NSF Postdoctoral Fellow</span></div><div><span style="font-size:12.8000001907349px">Department of Astronomy</span></div><div><span style="font-size:12.8000001907349px">California Institute of Technology</span><br></div><div><a href="http://chummels.org" style="font-size:12.8000001907349px" target="_blank">http://chummels.org</a><br></div></div></div></div>
</div>