<div dir="ltr">Hi,<div style>I get this error when trying to do a projection plot:</div><div style><div>----> 9 <span class="" style="white-space:pre"> </span>p = ProjectionPlot(pf, "x", "particle_density",[ 0.5808,0.5398, 0.4504 ],(4.0,'mpc'))</div>
<div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/visualization/plot_window.pyc in __init__(self, pf, axis, fields, center, width, axes_unit, weight_field, max_level, origin, fontsize, field_parameters, data_source)</div>
<div> 1347 if field_parameters is None: field_parameters = {}</div><div> 1348 proj = pf.h.proj(axis, fields, weight_field=weight_field, max_level=max_level,</div><div>-> 1349 center=center, source=data_source, **field_parameters)</div>
<div> 1350 PWViewerMPL.__init__(self, proj, bounds, origin=origin, fontsize=fontsize)</div><div> 1351 self.set_axes_unit(axes_unit)</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in __init__(self, axis, field, weight_field, max_level, center, pf, source, node_name, field_cuts, preload_style, serialize, style, **kwargs)</div>
<div> 1758 self.preload_style = preload_style</div><div> 1759 self._deserialize(node_name)</div><div>-> 1760 self._refresh_data()</div><div> 1761 if self._okay_to_serialize and self.serialize: self._serialize(node_name=self._node_name)</div>
<div> 1762 </div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in _refresh_data(self)</div><div> 318 """</div><div> 319 self.clear_data()</div>
<div>--> 320 self.get_data()</div><div> 321 </div><div> 322 def keys(self):</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in get_data(self, fields)</div>
<div> 1859 if g.Level == level],</div><div> 1860 self.get_dependencies(fields), <a href="http://self.hierarchy.io">self.hierarchy.io</a>)</div><div>-> 1861 self._add_level_to_tree(tree, level, fields)</div>
<div> 1862 mylog.debug("End of projecting level level %s, memory usage %0.3e",</div><div> 1863 level, get_memory_usage()/1024.)</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in _add_level_to_tree(self, tree, level, fields)</div>
<div> 1981 % (level, self._max_level), len(grids_to_project))</div><div> 1982 for pi, grid in enumerate(grids_to_project):</div><div>-> 1983 self._add_grid_to_tree(tree, grid, fields, zero_out, dls)</div>
<div> 1984 pbar.update(pi)</div><div> 1985 grid.clear_data()</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in _add_grid_to_tree(self, tree, grid, fields, zero_out, dls)</div>
<div> 1925 if zero_out: weight_data[grid.child_indices] = 0</div><div> 1926 masked_data = [fd.astype('float64') * weight_data</div><div>-> 1927 for fd in self._get_data_from_grid(grid, fields)]</div>
<div> 1928 wdl = 1.0</div><div> 1929 else:</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in save_state(self, grid, field, *args, **kwargs)</div><div>
93 old_keys = grid.field_data.keys()</div><div> 94 grid.field_parameters = self.field_parameters</div><div>---> 95 tr = func(self, grid, field, *args, **kwargs)</div><div> 96 grid.field_parameters = old_params</div>
<div> 97 grid.field_data = YTFieldData( [(k, grid.field_data[k]) for k in old_keys] )</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/data_containers.pyc in _get_data_from_grid(self, grid, fields)</div>
<div> 2003 else:</div><div> 2004 bad_points = 1.0</div><div>-> 2005 return [grid[field] * bad_points for field in fields]</div><div> 2006 </div><div> 2007 def _gen_node_name(self):</div>
<div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.pyc in __getitem__(self, key)</div><div> 155 """</div><div> 156 if key not in self.field_data:</div>
<div>--> 157 self.get_data(key)</div><div> 158 return self.field_data[key]</div><div> 159 </div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.pyc in get_data(self, field, convert)</div>
<div> 198 else: raise</div><div> 199 else:</div><div>--> 200 self._generate_field(field)</div><div> 201 return self.field_data[field]</div><div> 202 </div>
<div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/grid_patch.pyc in _generate_field(self, field)</div><div> 143 self[field] = temp_array[sl]</div><div> 144 else:</div>
<div>--> 145 self[field] = self.pf.field_info[field](self)</div><div> 146 else: # Can't find the field, try as it might</div><div> 147 raise exceptions.KeyError(field)</div>
<div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/field_info_container.pyc in __call__(self, data)</div><div> 393 ii = self.check_available(data)</div><div> 394 original_fields = data.keys() # Copy</div>
<div>--> 395 dd = self._function(self, data)</div><div> 396 dd *= self._convert_function(data)</div><div> 397 for field_name in data.keys():</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/data_objects/universal_fields.pyc in _pdensity(field, data)</div>
<div> 982 blank, np.array(data.LeftEdge).astype(np.float64),</div><div> 983 np.array(data.ActiveDimensions).astype(np.int32),</div><div>--> 984 np.float64(data['dx']))</div>
<div> 985 return blank</div><div> 986 add_field("particle_density", function=_pdensity,</div><div><br></div><div>/home/safarzadeh/yt-x86_64/src/yt-hg/yt/utilities/lib/CICDeposit.so in yt.utilities.lib.CICDeposit.CICDeposit_3 (yt/utilities/lib/CICDeposit.c:1485)()</div>
<div><br></div><div>ValueError: Buffer dtype mismatch, expected 'float64_t' but got 'float'</div><div><br></div><div style>are there alternative ways around it?</div><div style><br></div><div style><div>(yt-x86_64)[safarzadeh@hecate yt-x86_64]$ yt instinfo</div>
<div><br></div><div>yt module located at:</div><div> /home/safarzadeh/yt-x86_64/src/yt-hg</div><div>The supplemental repositories are located at:</div><div> /home/safarzadeh/yt-x86_64/src/yt-supplemental</div><div><br>
</div><div>The current version of the code is:</div><div><br></div><div>---</div><div>cde0a641f1bf</div><div>---</div><div><br></div><div>This installation CAN be automatically updated.</div><div>Could not determine when yt stack was last updated.</div>
<div><br></div><div><br></div></div><div style><br></div><div style>Regards,</div><div style>Mohammad</div></div></div>