[yt-users] derived quantities
Matthew Turk
matthewturk at gmail.com
Fri Dec 10 15:43:19 PST 2010
Hi Stephen,
You might try printing out what is fed into the combine function; I
think what you really want to do is return (data["creation_time"] >
0).sum() in _NumberOfStars. Inside _combNumberOfStars try printing
both data and ct, as well, to see if it's an axis problem with the
combine function.
-Matt
On Fri, Dec 10, 2010 at 3:24 PM, Stephen Skory <stephenskory at yahoo.com> wrote:
> Matt,
>
>> Try: dd.quantities["NumberOfStars"]()
>
>
> Duh! That works, sort of: Now I'm getting '0' when I am expecting '1'. Any ideas why? If I put a print in _NumberOfStars() I see that one of the grids has one star, the others zero, but otherwise things are not as I expect.
>
>
> Stephen Skory
> stephenskory at yahoo.com
> http://stephenskory.com/
> 510.621.3687 (google voice)
> _______________________________________________
> 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