[yt-users] Clump Finder Crashing

Nicholas Earl earlnich at msu.edu
Mon Dec 12 13:14:37 PST 2011


Awesome, thanks!

On Mon, Dec 12, 2011 at 4:09 PM, Britton Smith <brittonsmith at gmail.com>wrote:

> Hi Nick,
>
> That's my yt install on Ranger.  I'll update it and then you can try this
> again.
>
> Britton
>
>
> On Mon, Dec 12, 2011 at 4:06 PM, Nicholas Earl <earlnich at msu.edu> wrote:
>
>> Ah, I see.
>>
>> Here are the results of running "yt instinfo":
>>
>>
>> yt module located at:
>>     /share/home/00688/tg458377/local/src/yt-hg
>> Not trusting file /share/home/00688/tg458377/local/src/yt-hg/.hg/hgrc
>> from untrusted user tg458377, group G-801008
>>
>> The current version of the code is:
>>
>> ---
>> 27ac9de7256c (yt) tip
>> ---
>>
>> This installation CAN be automatically updated.
>> Updated successfully.
>>
>> Thanks,
>> Nick
>>
>> On Mon, Dec 12, 2011 at 4:00 PM, Matthew Turk <matthewturk at gmail.com>wrote:
>>
>>> Hi Nick,
>>>
>>> This relatively obscure error looks to be the result of yt not
>>> understanding how to convert GasEnergy to ergs/g.  Which version of yt
>>> are you using?  Can you run "yt instinfo" to get that information out?
>>>  The diagnosis Britton and Stephen requested lets me know that the
>>> field it's trying to find, GasEnergy, does not exist.  With later
>>> versions of yt we have added translation functions to attempt to work
>>> around conflicted names (for instance "Gas_Energy" and "GasEnergy"
>>> have both been seen in Enzo.)
>>>
>>> -Matt
>>>
>>> On Mon, Dec 12, 2011 at 2:00 PM, Nicholas Earl <earlnich at msu.edu> wrote:
>>> > Hey yt users,
>>> >
>>> > I am getting some weird exiting happening with the clump finder and
>>> Ranger,
>>> > and I was wondering if anyone else has experienced the issue, or know
>>> what I
>>> > might be doing wrong? I see that it gets to a point where the min and
>>> max
>>> > densities are the same, but I didn't think it would cause the script to
>>> > crash...
>>> >
>>> > Here is what I'm getting:
>>> >
>>> >> Finding clumps: min: 1.000000e-22, max: 1.000000e-21, step: 10.000000
>>> >> Wiping out existing children clumps.
>>> >> Joining...
>>> >> Finished joining in 1.06e+00 seconds
>>> >> Investigating 2 children.
>>> >> Finding clumps: min: 1.000000e-21, max: 1.000000e-21, step: 10.000000
>>> >> Traceback (most recent call last):
>>> >>   File
>>> >> "/scratch/01198/earln/run_files/clump_analysis/find_clumps_plot.py",
>>> line
>>> >> 69, in <module>
>>> >>     amods.level_sets.find_clumps(master_clump, c_min, c_max, step)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/analysis_modules/level_sets/clump_handling.py",
>>> >> line 179, in find_clumps
>>> >>     find_clumps(clump, min_val*d_clump, max_val, d_clump)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/analysis_modules/level_sets/clump_handling.py",
>>> >> line 188, in find_clumps
>>> >>     elif (child._isValid()):
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/analysis_modules/level_sets/clump_handling.py",
>>> >> line 143, in _isValid
>>> >>     self.function_value = eval(self.function)
>>> >>   File "<string>", line 1, in <module>
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/derived_quantities.py",
>>> >> line 93, in __call__
>>> >>     return self._call_func_unlazy(args, kwargs)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/derived_quantities.py",
>>> >> line 116, in _call_func_unlazy
>>> >>     retval = self.func(self._data_source, *args, **kwargs)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/derived_quantities.py",
>>> >> line 320, in _IsBound
>>> >>     thermal = (data["ThermalEnergy"] * data["CellMass"]).sum()
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 286, in __getitem__
>>> >>     self.get_data(key)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 2277, in get_data
>>> >>     if self._generate_field(field):
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 2347, in _generate_field
>>> >>     self[field] = self.pf.field_info[field](self)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/field_info_container.py",
>>> >> line 309, in __call__
>>> >>     dd = self._function(self, data)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/frontends/enzo/fields.py",
>>> >> line 131, in _ThermalEnergy
>>> >>     return data["GasEnergy"]
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 286, in __getitem__
>>> >>     self.get_data(key)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 2277, in get_data
>>> >>     if self._generate_field(field):
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/data_containers.py",
>>> >> line 2347, in _generate_field
>>> >>     self[field] = self.pf.field_info[field](self)
>>> >>   File
>>> >>
>>> "/share/home/00688/tg458377/local/src/yt-hg/yt/data_objects/field_info_container.py",
>>> >> line 310, in __call__
>>> >>     dd *= self._convert_function(data)
>>> >> TypeError: unsupported operand type(s) for *=: 'NoneType' and 'float'
>>> >> TACC: Cleaning up after job: 2259004
>>> >> TACC: Done.
>>> >
>>> >
>>> > I've also attempted lowering the step size to 5.0, but with the same
>>> result.
>>> > It also seems to be the case that I do not get this behavior when I use
>>> > function=True parameter, but I kept keeping jobs that would never end,
>>> they
>>> > would just be outputting Getting field Density from 1 the entire time.
>>> So
>>> > I've had to rerun the clump finder a few times, putting in some minimum
>>> > conditions, and still it'd happen.
>>> >
>>> > Any ideas?
>>> >
>>> > Thanks!
>>> > Nick
>>> >
>>> > _______________________________________________
>>> > 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
>>>
>>
>>
>> _______________________________________________
>> 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
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20111212/f8260152/attachment.html>


More information about the yt-users mailing list