Hi Luigi,<br><br>The original behavior of the HaloProfiler was to only use the halo_radius keyword if the radius was not in the halo list.  I just pushed a change such that if you specify the radius with the halo_radius command, it will use that even if another radius is present in the halo list.  This should not change the behavior for anyone using the halo profiler with radii from the halo list, but someone please let me know if any issues crop up.<br>
<br>If you update your yt source and reinstall you should be all set.<br><br>Britton<br><br><div class="gmail_quote">On Thu, May 19, 2011 at 4:29 AM, Luigi Iapichino <span dir="ltr"><<a href="mailto:luigi@ita.uni-heidelberg.de">luigi@ita.uni-heidelberg.de</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Dear all,<br>
<br>
I have the following (rather standard, I guess) problem: I want to produce<br>
radial profiles of selected quantities, from a number of halos in my<br>
cosmological box. I am using the yt halo profiler, in the unstable branch. So<br>
far, I am able to add filters in such a way to select as many halos as I<br>
want, but I have problems with setting the outer radius of my profiles.<br>
<br>
Here are the relevant parts of my script:<br>
<br>
...<br>
import yt.analysis_modules.halo_profiler.api as HP<br>
<br>
...<br>
<br>
hp = HP.HaloProfiler(data_dir,<br>
halos="multiple",halo_radius=500,radius_units="kpc",n_profile_bins=20)<br>
...<br>
<br>
In particular, I am not able to change the outer radius by setting<br>
halo_radius. I read in the manual:<br>
" halo_radius (float): if no halo radii are provided in the halo list file,<br>
this parameter ..." etc.<br>
<br>
Now, in the halo list file provided by the HOP tool (within yt) there is an<br>
entry called max_r. Is it a problem if I want to override it and set the<br>
outer radius differently? As a side note, however max_r is >not< the current<br>
outer radius that I found in my in Halo_0000_profile.dat .<br>
I look forward to your suggestions,<br>
Cheers,<br>
<br>
  Luigi<br>
<br>
--<br>
<br>
---------------------------------------------------------------<br>
<br>
Luigi Iapichino<br>
Zentrum fuer Astronomie der Universitaet Heidelberg<br>
Institut fuer Theoretische Astrophysik<br>
Albert-Ueberle-Str. 2, D-69120 Heidelberg, Germany<br>
Tel: <a href="tel:%2B49%206221%20548983" value="+496221548983">+49 6221 548983</a>, Fax: <a href="tel:%2B49%206221%20544221" value="+496221544221">+49 6221 544221</a><br>
e-mail: <a href="mailto:luigi@ita.uni-heidelberg.de">luigi@ita.uni-heidelberg.de</a><br>
URL: <a href="http://www.ita.uni-heidelberg.de/%7Eluigi/" target="_blank">http://www.ita.uni-heidelberg.de/~luigi/</a><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>
</blockquote></div><br>