[yt-users] path_element_z error

David Collins dcollins4096 at gmail.com
Fri May 13 07:51:03 PDT 2016


Hi, Everybody!

I have an odd error, I was wondering if this is pebkac or a yt glitch.  If
I try to do a projection, first it complains about 'creation_time' not
existing, then on a subsequent call, it complains about 'path_element_z'
not existing.  The only difference between this run and other similar Enzo
runs that do work is this one has a handful of active particles.  Is there
something else I need to do to get those to work?  I'm running yt 3.2.3.

Thanks!
d.

>>> ds = yt.load(path)
>>> proj = yt.ProjectionPlot(ds,ax,field)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "p33_harry_plotter.py", line 40, in <module>
    proj = yt.ProjectionPlot(ds,ax,field)
#,weight_field=weight_fields.get(field,None),method=methods.get(field,'integrate'))
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/visualization/plot_window.py",
line 1437, in __init__
    field_parameters = field_parameters, method = method)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/construction_data_containers.py",
line 255, in __init__
    field = self._determine_fields(ensure_list(field))
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/data_containers.py",
line 518, in _determine_fields
    finfo = self.ds._get_field_info("unknown", fname)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 505, in _get_field_info
    self.index
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 326, in index
    self.create_field_info()
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 377, in create_field_info
    self.add_particle_union(pu)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 435, in add_particle_union
    funits = self._get_field_info(s, field).units
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/static_output.py",
line 543, in _get_field_info
    raise YTFieldNotFound((ftype, fname), self)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('io',
'creation_time')' in DD0010.

>>> proj = yt.ProjectionPlot(ds,ax,field)

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "p33_harry_plotter.py", line 40, in <module>
    proj = yt.ProjectionPlot(ds,ax,field)
#,weight_field=weight_fields.get(field,None),method=methods.get(field,'integrate'))
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/visualization/plot_window.py",
line 1437, in __init__
    field_parameters = field_parameters, method = method)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/construction_data_containers.py",
line 258, in __init__
    self.get_data(field)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/construction_data_containers.py",
line 332, in get_data
    self._handle_chunk(chunk, fields, tree)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/construction_data_containers.py",
line 424, in _handle_chunk
    dl = chunk["index", "path_element_%s" % (ax_name)]
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/data_containers.py",
line 253, in __getitem__
    self.get_data(f)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/data_objects/data_containers.py",
line 702, in get_data
    fluids, self, self._current_chunk)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/geometry/geometry_handler.py",
line 239, in _read_fluid_fields
    fields_to_read, fields_to_generate = self._split_fields(fields)
  File
"/u/sciteam/dcollins/local-yt-2016-04-12-nathan/src/yt-conda/lib/python2.7/site-packages/yt/geometry/geometry_handler.py",
line 220, in _split_fields
    raise YTFieldNotFound((ftype,fname), self.ds)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('index',
'path_element_z')' in DD0010.

-- 
-- Sent from a computer.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20160513/3d6ebecd/attachment.htm>


More information about the yt-users mailing list