<div dir="ltr">Hi everyone,<div><br></div><div>I'm new to yt and am using the latest version (3.0), with support for TIPSY output. I'm having issues creating temperature slices. The data I am using is a periodic box, not equal length in all dimensions.</div>
<div><br></div><div>My script goes like this:</div><div><br></div><div>pf = load(fn, parameter_file=paramfile)<br></div><div>pf.field_list</div><div>slc = SlicePlot(pf,'z','temperature',width=(1,'kpc'),center=[0,0,0])<br>
</div><div><br></div><div>When I try to create the slice, I receive the following error:<br><div>In [9]: slc = SlicePlot(pf,'z','temperature',width=(1,'kpc'),center=[0,0,0])</div><div>yt : [INFO ] 2014-06-16 11:14:40,033 xlim = -0.500000 0.500000</div>
<div>yt : [INFO ] 2014-06-16 11:14:40,033 ylim = -0.500000 0.500000</div><div>yt : [INFO ] 2014-06-16 11:14:40,033 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800</div><div>
yt : [INFO ] 2014-06-16 11:14:40,076 Making a fixed resolution buffer of (('deposit', 'Gas_smoothed_temperature')) 800 by 800</div><div>yt : [INFO ] 2014-06-16 11:14:40,096 xlim = -0.500000 0.500000</div>
<div>yt : [INFO ] 2014-06-16 11:14:40,096 ylim = -0.500000 0.500000</div><div>yt : [INFO ] 2014-06-16 11:14:40,097 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800</div><div>
yt : [INFO ] 2014-06-16 11:14:40,117 Making a fixed resolution buffer of (('deposit', 'Gas_smoothed_temperature')) 800 by 800</div><div>yt : [INFO ] 2014-06-16 11:14:40,138 Making a fixed resolution buffer of (('gas', 'temperature')) 800 by 800</div>
<div>yt : [INFO ] 2014-06-16 11:14:40,159 Making a fixed resolution buffer of (('deposit', 'Gas_smoothed_temperature')) 800 by 800</div><div>yt : [INFO ] 2014-06-16 11:14:40,183 Making a fixed resolution buffer of (('all', 'temperature')) 800 by 800</div>
<div>---------------------------------------------------------------------------</div><div>error Traceback (most recent call last)</div><div><ipython-input-9-4dae35760081> in <module>()</div>
<div>----> 1 slc = SlicePlot(pf,'z','temperature',width=(1,'kpc'),center=[0,0,0])</div><div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/visualization/plot_window.pyc in SlicePlot(pf, normal, fields, axis, *args, **kwargs)</div>
<div> 1779 del kwargs['north_vector']</div><div> 1780 </div><div>-> 1781 return AxisAlignedSlicePlot(pf, normal, fields, *args, **kwargs)</div><div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/visualization/plot_window.pyc in __init__(self, pf, axis, fields, center, width, axes_unit, origin, fontsize, field_parameters)</div>
<div> 1006 if axes_unit is None:</div><div> 1007 axes_unit = get_axes_unit(width, pf)</div><div>-> 1008 self.set_axes_unit(axes_unit)</div><div> 1009 </div><div> 1010 class ProjectionPlot(PWViewerMPL):</div>
<div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/visualization/plot_container.pyc in newfunc(*args, **kwargs)</div><div> 53 rv = f(*args, **kwargs)</div><div> 54 args[0]._plot_valid = False</div>
<div>---> 55 args[0]._setup_plots()</div><div> 56 return rv</div><div> 57 return newfunc</div><div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/visualization/plot_window.pyc in _setup_plots(self)</div>
<div> 745 zlim = (None, None)</div><div> 746 </div><div>--> 747 image = self._frb[f]</div><div> 748 </div><div> 749 if image.max() == image.min():</div><div><br></div>
<div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/visualization/fixed_resolution.pyc in __getitem__(self, item)</div><div> 123 buff = self.pf.coordinates.pixelize(self.data_source.axis,</div><div> 124 self.data_source, item, bounds, self.buff_size,</div>
<div>--> 125 int(self.antialias))</div><div> 126 # Need to add _period and self.periodic</div><div> 127 # self._period, int(self.periodic)</div><div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/geometry/cartesian_coordinates.pyc in pixelize(self, dimension, data_source, field, bounds, size, antialias, periodic)</div>
<div> 52 if dimension < 3:</div><div> 53 return self._ortho_pixelize(data_source, field, bounds, size,</div><div>---> 54 antialias, dimension, periodic)</div>
<div> 55 else:</div><div> 56 return self._oblique_pixelize(data_source, field, bounds, size,</div><div><br></div><div>/net/imp/3/home/woodfiaj/python/yt-3.0/yt/yt/geometry/cartesian_coordinates.pyc in _ortho_pixelize(self, data_source, field, bounds, size, antialias, dim, periodic)</div>
<div> 69 data_source[field], size[0], size[1],</div><div> 70 bounds, int(antialias),</div><div>---> 71 period, int(periodic)).transpose()</div>
<div> 72 return buff</div><div> 73 </div><div><br></div><div>error: data is of incorrect type (wanted 1D float)</div></div><div><br></div><div>I have no idea what could be causing this, any ideas on how to solve this error?</div>
<div><br></div><div>Alex</div></div>