[yt-users] passing parameters to 'ray'

Elizabeth Tasker taskere at mcmaster.ca
Wed Aug 10 06:21:51 PDT 2011


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



More information about the yt-users mailing list