[yt-users] LightRay class

Cameron Hummels chummels at gmail.com
Wed May 11 12:12:08 PDT 2016


Hi Fei Li,

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.

trident-project-users at googlegroups.com

Cameron

On Wed, May 11, 2016 at 12:06 PM, Fei Li <lif.li at mail.utoronto.ca> wrote:

> 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
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>


-- 
Cameron Hummels
NSF Postdoctoral Fellow
Department of Astronomy
California Institute of Technology
http://chummels.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160511/e3cc121e/attachment-0001.htm>


More information about the yt-users mailing list