<div dir="ltr">Ah now that makes sense. Thanks Matt!<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Nov 17, 2014 at 4:56 PM, Matthew Turk <span dir="ltr"><<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi John,<br><br>This comes from the difference in how "particle_mass" and "all_density" are generated -- all_density is a deposited field, where it's deposited onto the mesh, so it will work if you use a mesh quantity.  particle_mass is discrete, so it needs a discrete field, like particle_radius.<div><br></div><div>I think if you specify a weight that is a discrete, your latter command will work too.</div><div><br></div><div>-Matt</div><br><div class="gmail_quote"><div><div class="h5">On Mon Nov 17 2014 at 8:55:03 AM John Regan <<a href="mailto:johnanthonyregan@gmail.com" target="_blank">johnanthonyregan@gmail.com</a>> wrote:<br></div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><div dir="ltr"><div><div><div><div><div>Hi All, <br><br><br></div>I was wondering about the behaviour of create_profile in 3.0.<br><br></div>If I do something like<br><br>yt.create_profile(sphere, 'particle_radius',  'all_density')<br><br></div>it will fail but<br><br>yt.create_profile(sphere, 'radius',  'all_density')<br><br></div>will succeed. <br><br></div><div>And <br>yt.create_profile(sphere, 'particle_radius', 'particle_mass', <br>                            weight_field=None)<br><br></div><div>will also be OK as long as I set the weight_field = None otherwise it fails. <br><br><br></div><div>I'm able to plot enclosed dark matter profiles but when it comes to density profiles the above difficulties are proving troublesome :)<br><br></div><div>Any tips would be appreciated! Simple script attached. <br><br></div><div>John<br><br><br></div></div></div></div>
______________________________<u></u>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/<u></u>listinfo.cgi/yt-users-<u></u>spacepope.org</a><br>
</blockquote></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>