[yt-dev] lost weak reference

david collins antpuncher at gmail.com
Fri Aug 10 09:39:28 PDT 2012


Ah.  I know what the parameter file _should_ be, can I go re-assign it
to the clumps?

d.

On Fri, Aug 10, 2012 at 10:33 AM, Matthew Turk <matthewturk at gmail.com> wrote:
> Hi Dave,
>
> Looks like the reference is not to the data object, but the parameter
> file.  From this context it's tough to see how that reference expired,
> though.  It could have happened if something like this were done:
>
> data = load("something").h.all_data()
>
> or if you ha a pf variable that was not held anywhere else that then
> went out of scope.
>
> -Matt
>
> On Fri, Aug 10, 2012 at 12:31 PM, david collins <antpuncher at gmail.com> wrote:
>> Hi, all--
>>
>> Is there a way to reconstruct a bad data object?  I'm making a bunch
>> of clumps, but some how (unsure how right now)  the weak reference to
>> "data" on  some of them is evaporating.
>>
>> Thanks,
>> d.
>>
>>>>> the_clumps[1].data
>> Traceback (most recent call last):
>>   File "<stdin>", line 1, in <module>
>>   File "/Users/dccollins/local2/src/yt-hg/yt/data_objects/data_containers.py",
>> line 3006, in __repr__
>>     s = "%s (%s): " % (self.__class__.__name__, self.pf)
>> ReferenceError: weakly-referenced object no longer exists
>>
>>
>>
>> --
>> Sent from my computer.
>> _______________________________________________
>> yt-dev mailing list
>> yt-dev at lists.spacepope.org
>> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org
> _______________________________________________
> yt-dev mailing list
> yt-dev at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org



-- 
Sent from my computer.



More information about the yt-dev mailing list