[yt-dev] Issue #1306: Profile computes the standard deviation instead of variance (yt_analysis/yt)

Greg Bryan issues-reply at bitbucket.org
Wed Jan 4 20:13:46 PST 2017


New issue 1306: Profile computes the standard deviation instead of variance
https://bitbucket.org/yt_analysis/yt/issues/1306/profile-computes-the-standard-deviation

Greg Bryan:

Andrew Cunningham points out:

 In the following cookbook example:  [http://yt-project.org/doc/cookbook/simple_plots.html#profiles-with-variance](Link URL)

the variance along the profile is extracted:


```
#!python

variance = prof.variance['gas', 'velocity_magnitude'].value
```


But this is actually the standard deviation.

You can see how the `variance` array attached to the profile object is computed [https://bitbucket.org/yt_analysis/yt/src/09f0ef297d7068078a021fc8290d9e3519baf82d/yt/data_objects/profiles.py?at=yt&fileviewer=file-view-default#profiles.py-183](here)




More information about the yt-dev mailing list