[yt-users] Weighed projections
Matthew Turk
matthewturk at gmail.com
Thu Jul 22 10:48:59 PDT 2010
Hi Brian,
Looking at your code (and the current cookbook, which I have just now
corrected and will rebuild the docs shortly) I believe the error is
that it should be "weight_field" instead of "weight". For shorthand
you don't need to supply the name of that argument, since in order it
would be field, axis, weight:
ph.add_projection("Temperature", 0, "Density")
-Matt
On Thu, Jul 22, 2010 at 10:43 AM, Brian Crosby <crosby.bd at gmail.com> wrote:
> I'm trying to make a density weighted temperature projection on Kraken, and
> the weighting seems to be causing problems. I get this error:
> Traceback (most recent call last):
> File "./s_p_halos.py", line 23, in <module>
> p = ph.add_projection("Temperature", 0, weight='Density')
> I'm puzzled because this exact same script works on my laptop, albeit with a
> much smaller data set. Any ideas or suggestions would be greatly
> appreciated.
> Thanks,
> Brian
> _______________________________________________
> 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