<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" 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: http://continuum.io/thanks and https://anaconda.org<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>
</body>
</html>