[yt-users] LightRay class

Fei Li lif.li at mail.utoronto.ca
Wed May 11 12:06:49 PDT 2016


Hello yt users,

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: ValueError: need more than 1 value to unpack.

Here is my script:

$ python
Python 2.7.11 |Continuum Analytics, Inc.| (default, Dec  6 2015, 18:08:32)
[GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
Anaconda is brought to you by Continuum Analytics.
Please check out: http://continuum.io/thanks and https://anaconda.org
>>> import yt
>>> import trident
>>> fn='/cita/h/home-2/fli/FIRE/grid_190_256.hdf5'
>>> light_ray=trident.LightRay(fn,simulation_type='Gadget')
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  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__
    find_outputs=find_outputs)
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/analysis_modules/cosmological_observation/cosmology_splice.py", line 34, in __init__
    find_outputs=find_outputs)
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/convenience.py", line 153, in simulation
    find_outputs=find_outputs)
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 75, in __init__
    find_outputs=find_outputs)
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/data_objects/time_series.py", line 414, in __init__
    self._parse_parameter_file()
  File "/home/fli/opt/yt-conda/lib/python2.7/site-packages/yt/frontends/gadget/simulation_handling.py", line 289, in _parse_parameter_file
    param, vals = (i.strip() for i in line.split(None, 1))
ValueError: need more than 1 value to unpack

Thanks for your help,

Fei Li

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/1147bf52/attachment.htm>


More information about the yt-users mailing list