Hi John,<br><br>Try "particle_radius".<br><br>Matt<br><br><div class="gmail_quote">On Mon, Nov 3, 2014, 7:06 AM John Regan <<a href="mailto:johnanthonyregan@gmail.com">johnanthonyregan@gmail.com</a>> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div><div>Hi Kacper,<br><br></div>Of course - I should have noticed that. Thanks for finding that. <br></div>However, I notice that when I try to create a profile for the Dark (particle) matter I run into some trouble as well. <br><br>rpm = yt.create_profile(sp, 'radius',  ['particle_mass'],<br>                        units = {'radius': 'pc', 'particle_mass' : 'Msun'}, <br>                        n_bins=20, weight_field=None, accumulation=True, fractional=False)<br><br></div>This gives the following error:<br><br>Traceback (most recent call last):<br>  File "EnclosedMass.py", line 35, in <module><br>    n_bins=20, weight_field=None, accumulation=True, fractional=False)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/profiles.py", line 1361, in create_profile<br>    obj.add_fields([field for field in fields])<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/profiles.py", line 782, in add_fields<br>    self._bin_chunk(chunk, fields, temp_storage)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/profiles.py", line 979, in _bin_chunk<br>    rv = self._get_data(chunk, fields)<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/data_objects/profiles.py", line 910, in _get_data<br>    arr[:,i] = chunk[field][filter]<br>  File "/homeappl/home/regan/appl_taito/YT/Dev-3.0/yt/yt/units/yt_array.py", line 963, in __getitem__<br>    ret = super(YTArray, self).__getitem__(item)<br>ValueError: too many boolean indices<br><br><br></div>Has anyone seen this before? For the 'cell_mass' everything works fine. <br><br></div>Cheers,<br>John<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Sat, Nov 1, 2014 at 6:49 PM, Kacper Kowalik <span dir="ltr"><<a href="mailto:xarthisius.kk@gmail.com" target="_blank">xarthisius.kk@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>I think that if you want to compute "total" instead of mean you need to set weight_field to None in create_profile.<div>Cheers,</div><div>Kacper</div><br><div class="gmail_quote"><div><div>On Sat Nov 01 2014 at 6:10:50 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><div dir="ltr">Hi All, <div><br></div><div>Is the accumulation flag working in 3.0? </div><div>I tried to plot the enclosed mass in a sphere and I got some funny results. </div><div><br></div><div><div>rpm = yt.create_profile(sp, 'radius',  'cell_mass',</div><div>                        units = {'radius': 'pc', 'cell_mass' : 'Msun'}, </div><div>                        weight_field='density', accumulation=True, fractional=False)</div></div><div><br></div><div>print "Mass = ", rpm["gas", "cell_mass"]<br></div><div><br></div><div>In this case bin[n-1] gives a mass of something like 0.5 Msun but when I print the totals quantity I get a value of several orders of magnitude higher and closer to what I would expect.</div><div><br></div><div>sp.quantities.total_quantity(["cell_mass", "particle_mass"])<br></div><div><br></div><div>Cheers,</div><div>John</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" 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/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></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>