<div dir="ltr"><div>Now, I try to move on yt-3.0.</div><div>For the test, I tried the following projection plot for DM and gas from the enzo simulation.</div><div>=============================</div><div>from yt.mods import *</div>
<div>import matplotlib.pylab as pylab</div><div><br></div><div>pf = load("../DD0023/DD0023")</div><div><div>pc = ProjectionPlot(pf, "x", "ComovingDensity", width = (1.0, 'mpccm'))</div>
<div>pc.save("cen_L1M")</div></div><div>pc = ProjectionPlot(pf, "x", "particle_density", width = (1.0, 'mpccm'))</div><div>pc.save("cen_L1M")</div><div>=============================</div>
<div><br></div><div>I found that the gas Projection density plot works but the DM projection plot crashs and gives me following message</div><div>============================</div><div>yt : [INFO ] 2013-09-18 12:00:51,613 Parameters: current_time = 23.8165517864</div>
<div>yt : [INFO ] 2013-09-18 12:00:51,613 Parameters: domain_dimensions = [128 128 128]</div><div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: domain_left_edge = [ 0. 0. 0.]</div><div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: domain_right_edge = [ 1. 1. 1.]</div>
<div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: cosmological_simulation = 1</div><div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: current_redshift = 20.1060163976</div><div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: omega_lambda = 0.721</div>
<div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: omega_matter = 0.279</div><div>yt : [INFO ] 2013-09-18 12:00:51,614 Parameters: hubble_constant = 0.701</div><div>Parsing Hierarchy100% |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||| Time: 00:\</div>
<div>00:00</div><div>yt : [INFO ] 2013-09-18 12:00:52,334 Gathering a field list (this may take a moment.)</div><div>Traceback (most recent call last):</div><div> File "test.py", line 11, in <module></div>
<div> pc = ProjectionPlot(pf, "x", "particle_density", width = (1.0, 'mpccm'))</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/visualization/plot_window.py", line 1410, in __init__</div>
<div> field_parameters = field_parameters)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/construction_data_containers.py", line 234, in __init__</div><div> self.get_data(field)</div>
<div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/construction_data_containers.py", line 278, in get_data</div><div> chunk_fields, "io")):</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/utilities/parallel_tools/parallel_analysis_interface.py", line 434, in parallel_objects</div>
<div> for obj_id, obj in oiter:</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 450, in chunks</div><div> self.get_data(fields)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 536, in get_data</div>
<div> self._generate_fields(fields_to_generate)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 552, in _generate_fields</div><div> self.field_data[field] = self._generate_field(field)</div>
<div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 219, in _generate_field</div><div> tr = self._generate_fluid_field(field)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 236, in _generate_fluid_field</div>
<div> rv = self._generate_spatial_fluid(field, ngt_exception.ghost_zones)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 252, in _generate_spatial_fluid</div><div>
ind += o.select(self.selector, self[field], rv, ind)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 189, in __getitem__</div><div> self.get_data(f)</div><div>
File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 536, in get_data</div><div> self._generate_fields(fields_to_generate)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 552, in _generate_fields</div>
<div> self.field_data[field] = self._generate_field(field)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 219, in _generate_field</div><div> tr = self._generate_fluid_field(field)</div>
<div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 238, in _generate_fluid_field</div><div> rv = finfo(gen_obj)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/field_info_container.py", line 488, in __call__</div>
<div> dd = self._function(self, data)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/universal_fields.py", line 991, in _pdensity</div><div> pmass = data[('deposit','all_mass')]</div>
<div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/grid_patch.py", line 85, in __getitem__</div><div> tr = super(AMRGridPatch, self).__getitem__(key)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 189, in __getitem__</div>
<div> self.get_data(f)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 536, in get_data</div><div> self._generate_fields(fields_to_generate)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 552, in _generate_fields</div>
<div> self.field_data[field] = self._generate_field(field)</div><div> File "/Users/jhchoi/common/src/yt-3.0-hg/yt/data_objects/data_containers.py", line 221, in _generate_field</div><div> raise YTCouldNotGenerateField(field, <a href="http://self.pf">self.pf</a>)</div>
<div>yt.utilities.exceptions.YTCouldNotGenerateField: Could field '('all', 'particle_position_x')' in DD0023 could not be generated.</div><div>=====================================</div><div><br></div>
<div>Do you have any idea what is the problem?</div></div><div style>This script has been working fine in yt-2.5.4.</div><div style><br></div><div style>Thank you in advance,</div><div style>Junhwan</div><div><br></div><div>
<br></div></div>