[yt-users] passing parameters to 'ray'

Matthew Turk matthewturk at gmail.com
Wed Aug 10 07:46:22 PDT 2011


Hi Elizabeth,

Could you elaborate on what you mean, and provide an example script?

Thanks,

-Matt
On Aug 10, 2011 7:22 AM, "Elizabeth Tasker" <taskere at mcmaster.ca> wrote:
> Hi,
>
> I'm having problems passing parameters to a ray object. I'm trying:
>
> ray1 = pf.h.ray( com[c], com[nearestcore], field_parameters =
> {'height_vector':na.array([0,0,1]), 'center':dd.center})
> Omega0 = ray1["Omega"]
>
> and I also tried out:
>
> ray1.set_field_parameter("height_vector", na.array([0,0,1]))
> ray1.set_field_parameter("center", dd.center)
>
> But it can't recognise them.
>
> Elizabeth
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110810/eb09f8b2/attachment.htm>


More information about the yt-users mailing list