Oh yeah, sorry about that. I wasn't paying close enough attention when I
responded.

Britton

On Tue, Jun 11, 2024 at 1:24 AM Michael Zingale via yt-users <
[email protected]> wrote:

> I think you need to index the ray, using `[]` not `()`, which python sees
> as a call instead.
>
> So try:
>
> print(ray[("index", "x")])
>
> or
>
> print(ray["x"])
>
>
>
> On Mon, Jun 10, 2024 at 4:09 PM Daniel <[email protected]> wrote:
>
>> how does the print(ray("index", "x")) work more specifically. I keep
>> trying to call it but it keeps giving me a 'YTRay' object is not callable
>> when I do print(ray("index", i)) or print(ray(i, i))
>> _______________________________________________
>> yt-users mailing list -- [email protected]
>> To unsubscribe send an email to [email protected]
>> https://mail.python.org/mailman3/lists/yt-users.python.org/
>> Member address: [email protected]
>>
>
>
> --
> Michael Zingale
> Professor of Physics and Astronomy
>
> Dept. of Physics & Astronomy • Stony Brook University • Stony Brook, NY
> 11794-3800
> *phone*:  631-632-8225
> *e-mail*: [email protected]
> *web*: https://zingale.github.io
> github: https://github.com/zingale <http://github.com/zingale>
>
> _______________________________________________
> yt-users mailing list -- [email protected]
> To unsubscribe send an email to [email protected]
> https://mail.python.org/mailman3/lists/yt-users.python.org/
> Member address: [email protected]
>
_______________________________________________
yt-users mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/yt-users.python.org/
Member address: [email protected]

Reply via email to