[yt-users] Halo Profiler

Britton Smith brittonsmith at gmail.com
Fri May 13 12:38:49 PDT 2011


Hi Carolyn,

Can you paste in here all the imports that are in the top of the script?

Britton

On Fri, May 13, 2011 at 3:37 PM, Carolyn Peruta <perutaca at msu.edu> wrote:

> I have a script which calls HaloProfiler and throws the following error:
>
> Traceback (most recent call last):
>   File "sim_halo_profiler.py", line 28, in <module>
>     fancy_padding=True, rearrange=True))
>   File
> "/share/home/01078/tg803421/yt-x86_64/lib/python2.6/site-packages/yt-2.1stable-py2.6-linux-x86_64.egg/yt/analysis_modules/halo_profiler/multi_halo_profiler.py",
> line 22
> 8, in __init__
>     self.pf = load(self.dataset)
>   File
> "/share/home/01078/tg803421/yt-x86_64/lib/python2.6/site-packages/yt-2.1stable-py2.6-linux-x86_64.egg/yt/convenience.py",
> line 85, in load
>     if c._is_valid(*args, **kwargs): candidates.append(n)
>   File
> "/share/home/01078/tg803421/yt-x86_64/lib/python2.6/site-packages/yt-2.1stable-py2.6-linux-x86_64.egg/yt/frontends/tiger/data_structures.py",
> line 202, in _is_valid
>     return os.path.exists(args[0] + "rhob")
> TypeError: unsupported operand type(s) for +: 'EnzoStaticOutput' and 'str'
>
>
>
> I did a quick test with iyt and it turns out it produces this error with
> the most simple form, hp=HaloProfiler(pf).
>
> Any ideas?
>
> Best,
>
> Carolyn
>
>
>
>
>
>
> On May 13, 2011, at 3:19 PM, Britton Smith wrote:
>
> Hi Carolyn,
>
> I don't think it's a version difference.  The halo profiler is supposed to
> take just the path to the dataset.  It should do the load call in the halo
> profiler.  I'm not sure why that would be happening.  Either way, if it's
> working, that's all that matter.
>
> Also, nice job with the logos.  I think yours had the best aesthetics of
> them all.  I voted for 7.
>
> Britton
>
> On Fri, May 13, 2011 at 12:27 PM, Carolyn Peruta <perutaca at msu.edu> wrote:
>
>> Thanks again for sending such great looking volume renderings!
>>
>>  I started halo analysis today and I couldn't get your sim_halo_profiler
>> script to work unless I added:    pf=load(output['filename']) and changed
>> all the calls of output['filename'] to pf.   I kept getting an error, 'str'
>> object has no attribute 'h'.    Could this be due to some change in yt
>> versions between your use of this script and mine?
>>
>> -C
>>
>> On Mar 22, 2011, at 4:23 PM, Britton Smith wrote:
>>
>> > Hi Carolyn,
>> >
>> > I'm attaching some analysis code you might find useful.
>> >
>> > yt-advanced-plotting.tar contains some scripts for making projections
>> and nice images from those projections.  The subdirectory in there called
>> advanced_examples contains the scripts needed to make the image in the
>> test_frames directory in there.  Specifically, those scripts can make the
>> image which has particles overlaid that are colored by age and sized by
>> mass.  I think that will be perfect for what you're working on.
>> >
>> > I've also attached a script for running the halo profiler to make radial
>> profiles of all the halos in your simulation.  Something you might find
>> useful in there is that I've added profile fields for stellar_density,
>> StarAgeYrs, and StarMetallicity.  These may be very interesting to look at
>> as a function of radius within your target halo.
>> >
>> > Let me know if you have any questions about this stuff.  Also, if you
>> have any other ideas for analysis that you're not sure how to implement, let
>> me know and we can discuss ways to implement them.
>> >
>> > Keep rocking.
>> >
>> > Britton
>> > <yt-advanced-plotting.tar><sim_halo_profiler.py>
>>
>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20110513/b85a2949/attachment.htm>


More information about the yt-users mailing list