Even I got the same error when I tested it with the available yt-ENZO data set (enzo_tiny_cosmology) and also with my simulations. It gives the result if weight_field = None otherwise showing the same error. I tried with many weight fields even with the ENZO fields like "Density" instead of yt one "density".

May somebody can help in this regard.

On Fri, Nov 2, 2018 at 7:39 AM <lianxiaoli87@sjtu.edu.cn> wrote:
Dear all:
      I need use the "project_light_core" in my work. If the key word "weight_field " = None, I can obtain my results. But I should set a weighted field, when I set weight_filed = 'density', I received a error like: I found that the 'density' can not be set to weight_field, I have no ideal about this.
Traceback (most recent call last):
  File "./light_core_projection.py", line 37, in <module>
  File "/mnt/ddnfs/data_users/xllian/software/yt/yt/analysis_modules/cosmological_observation/light_cone/light_cone.py", line 343, in project_light_cone
  File "/mnt/ddnfs/data_users/xllian/software/yt/yt/visualization/fixed_resolution.py", line 134, in __getitem__
  File "/mnt/ddnfs/data_users/xllian/software/yt/yt/geometry/coordinates/cartesian_coordinates.py", line 158, in pixelize
    antialias, dimension, periodic)
  File "/mnt/ddnfs/data_users/xllian/software/yt/yt/geometry/coordinates/cartesian_coordinates.py", line 225, in _ortho_pixelize
    finfo = self.ds._get_field_info(field)
  File "/mnt/ddnfs/data_users/xllian/software/yt/yt/data_objects/static_output.py", line 773, in _get_field_info
    raise YTFieldNotFound((ftype, fname), self)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('all', 'weight_field')' in RD0033.
Thanks all
yt-users mailing list -- yt-users@python.org
To unsubscribe send an email to yt-users-leave@python.org