[yt-users] [SPAM] Re: Quantities, hierarchy

Matthew Turk matthewturk at gmail.com
Tue May 25 14:27:14 PDT 2010


Hi Dave,

That won't inherit it, but because data.pf is guaranteed to exist
within the definition of a derived field, that should do what you
want.

-Matt

On Tue, May 25, 2010 at 2:26 PM, David Collins
<dcollins at physics.ucsd.edu> wrote:
> Would something like what Britton suggested to Charles a while back work?
>
> pf.parameters['temperature_threshold'] = 1.e7
> data.pf.parameters['temperature_threshold'].
>
> will
> pf.h.sphere(whatever)
>
> inherit my new thing?
>
> d.
>
>
> On Tue, May 25, 2010 at 2:02 PM, Matthew Turk <matthewturk at gmail.com> wrote:
>> Hi Dave,
>>
>> Unfortunately, I don't think there is.  We could potentially set
>> something up, but as it stands I think both the method resolution
>> order of inherited Python objects as well as the name mangling for
>> "private" methods like __set_default_field_parameters (in
>> yt/lagos/BaseDataTypes.py:161) get in the way.
>>
>> -Matt
>>
>> On Tue, May 25, 2010 at 1:58 PM, david collins <antpuncher at gmail.com> wrote:
>>> Hi, all--
>>>
>>> I've used set_field_parameter for computing quantities, but that works
>>> directly on a ExtractedRegions and whatnot.  Is it possible to tie
>>> something directly to the hierarchy or pf so that any new objects I
>>> create can also see this value?
>>>
>>> Thanks,
>>> d.
>>>
>>> --
>>> Sent from my Stone Tablet and carried by my Pterodactyl.
>>> _______________________________________________
>>> yt-users mailing list
>>> yt-users at lists.spacepope.org
>>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>>
>> _______________________________________________
>> yt-users mailing list
>> yt-users at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>>
>
>
>
> --
> Sent from my Stone Tablet and carried by my Pterodactyl.
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>



More information about the yt-users mailing list