[yt-dev] Issue #1164: particle angular momentum profile error with attachment (the same as #1163) (yt_analysis/yt)

Anonymous issues-reply at bitbucket.org
Wed Jan 27 11:37:39 PST 2016


New issue 1164: particle angular momentum profile error with attachment (the same as #1163)
https://bitbucket.org/yt_analysis/yt/issues/1164/particle-angular-momentum-profile-error

Anonymous:

I wrote the attach script to compute the particle angular momentum.
This script result in following error message:
………………
Traceback (most recent call last):
  File "pang.py", line 26, in <module>
    profile = yt.Profile1D(sphere, 'partradiuspc', Nbin, x_min=rmin,
x_max=rmax, x_log=True, weight_field=None)
  File "/home/jhchoi/common/src/yt/yt/data_objects/profiles.py", line
411, in __init__
    self.x_field = data_source._determine_fields(x_field)[0]
  File "/home/jhchoi/common/src/yt/yt/data_objects/data_containers.py",
line 1001, in _determine_fields
    raise YTFieldNotFound((ftype,fname),self.ds)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('all',
'partradiuspc')' in DD0045.

If I remove "particle_type=True" in add_field, it works.
However, I am not sure that removing "particle_type=True" returns correct output.

Thank you,
Junhwan






More information about the yt-dev mailing list