<div dir="ltr">Hi yt-users!<div><br></div><div>I am trying to make a profile plot of the standard deviation of the gas density of a galaxy for a few outputs.  I *think* I am closely following the cookbook example:</div><div><br></div><div><a href="http://yt-project.org/doc/cookbook/simple_plots.html?highlight=profileplot%20standard%20deviation">http://yt-project.org/doc/cookbook/simple_plots.html?highlight=profileplot%20standard%20deviation</a><br></div><div><br></div><div>but am getting an error:</div><div><br></div><div>AttributeError: 'Profile1D' object has no attribute 'standard_deviation'</div><div><br></div><div>Here is a code snippet, and I will attach the whole ugly script in case I missed anything that someone needs to see (ignore the strange indents below, cut and paste does not love me):</div><div><br></div><div><div>ds = yt.load("/data001/stonnes/"+loopfile[i]+"/DD"+loop[i]+"/"+loopfile[i]+loop[i])</div><div>    disk1 = ds.disk([0.5,0.5,0.5],[0,0,-1.0],(40,"kpc"),(2,"kpc"))</div><div>    disk = disk1.cut_region(["obj['Metal_Density']/obj['density'] > 0.05"])</div><div>    </div><div>    prof = yt.create_profile(disk,</div><div>    'radius',('gas','density'),</div><div>    n_bins=52,</div><div>    units={'radius':'kpc'},</div><div>    weight_field='ones',</div><div>    extrema={'radius':((0.0,'kpc'),(40.0,'kpc'))},</div><div>    )</div><div>    </div><div>    radius = prof.x</div><div>    mean = prof['gas','density']</div><div>    std = prof.standard_deviation['gas','density']</div><div>    plt.semilogy(radius,mean,color=cols[i],linewidth=lw[i],linestyle=linest[i],label=looptext[i])</div><div>    plt.ylim(1e-27,1e-21)</div><div>    plt.xlabel('r (kpc)')</div><div>    plt.ylabel(r'density (g/cm$^3$)')</div><div>    plt.legend()</div></div><div><br></div><div>I am using yt version 3.4-dev, and the line that gets the error is:</div><div><br></div><div>std = prof.standard_deviation['gas','density']<br></div><div><br></div><div>Any help is much appreciated!  Thanks,</div><div>Stephanie</div><div><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div dir="ltr"><div><div><div><font face="garamond,serif">--<br>Dr. Stephanie Tonnesen<br></font></div></div><div><font face="garamond,serif">Associate Research Scientist</font></div><div><font face="garamond,serif">CCA, Flatiron Institute</font></div><div><font face="garamond,serif">New York, NY</font></div><font face="garamond,serif"><br></font></div><font face="garamond,serif"><a href="mailto:stonnes@gmail.com" target="_blank">stonnes@gmail.com</a><br></font></div></div></div></div></div></div></div>
</div></div>