[yt-users] ortho_ray

Matthew Turk matthewturk at gmail.com
Tue Feb 1 19:36:36 PST 2011


Hi Dave,

This is non-fatal, and simply an error on my part.  During the
"__repr__" call, it looks for a non-existent attribute.  If you had
done:

ray = pf.h.ortho_ray( ... )

it would not have thrown an error, and you could access it.  If you
printed it, it would throw the error.  And if you printed
pc.plots[-1].data it would throw it.

Anyway, independent of that, I've fixed it in the both stable and development.

-Matt

On Tue, Feb 1, 2011 at 10:08 PM, david collins <antpuncher at gmail.com> wrote:
> Hi, all--
>
> I'm probably doing something dumb, but I'm seeing an odd error with ortho_ray:
>
>>> pf.h.ortho_ray(1,[0.505,0.505],'Density')
> Traceback (most recent call last):
>  File "<stdin>", line 1, in <module>
>  File "/Users/dcollins/local/src/yt-hg/yt/data_objects/data_containers.py",
> line 342, in __repr__
>    for i in self._con_args])
> AttributeError: 'AMROrthoRay' object has no attribute 'coords'
>
> But
>
>>>> j = pc.add_ortho_ray(1,[0.505,0.505],'Density')
>
> works fine.  Am I doing something dumb with the ortho_ray?
>
> --
> Sent from my Stone Tablet and carried by my Pterodactyl.
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list