[yt-users] Problems when using YTSphere.max(...)
Nathan Goldbaum
nathan12343 at gmail.com
Wed Nov 23 08:06:45 PST 2016
Hi Katharina,
This is a new feature in yt 3.3, if you're using an older version I'd urge
you to update.
If you can't update, you can do:
sp.quantities.extrema("temperature")
To get both the max and minimum value.
Nathan
On Wed, Nov 23, 2016 at 10:55 AM Katharina Wollenberg <
k.wollenberg at stud.uni-heidelberg.de> wrote:
> Hi together,
>
> I want to find out, among others, temperature and pressure values
> corresponding to a maximum density value within a spherical volume. I
> thought about using YTSphere.max(…) or YTSphere.argmax(…) for this purpose.
> However, in both cases I get the Attribute error “ “YTSphere” object has no
> attribute “max” “ .
>
> What might be the error origin? Have I forgotten something obvious?
>
> Regards,
>
> Katharina
>
>
>
>
> -------------------------------------------------------
> Katharina Wollenberg
> PhD Student in Astronomy
>
> Zentrum für Astronomie der Universität Heidelberg (ZAH)
> Institute of Theoretical Astrophysics (ITA)
> Albert-Ueberle-Str. 2
> 69120 Heidelberg
> Germany
>
>
>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161123/ef261d83/attachment-0001.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: max-error.png
Type: image/png
Size: 76588 bytes
Desc: not available
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20161123/ef261d83/attachment-0001.png>
More information about the yt-users
mailing list