<div dir="ltr">Hi folks,<div><br></div><div>I am having a problem making weighted projections in yt-3.  Using the current tip, when I type this:</div><div><br></div><div>plot = yt.ProjectionPlot(ds,'x',fields=('gas', 'density'), weight_field=None, width=(1.0,'unitary'), center=[0.5,0.5,0.5]).save()<br>
</div><div><br></div><div>everything works fine, and I get a projection.  However, when I try this:</div><div><br></div><div>plot = yt.ProjectionPlot(ds,'x',fields=('gas', 'density'), weight_field=('gas', 'density'), width=(1.0,'unitary'), center=[0.5,0.5,0.5]).save()<br>
</div><div><br></div><div>I get the error:</div><div><br></div><div><div>---------------------------------------------------------------------------</div><div>AttributeError                            Traceback (most recent call last)</div>
<div><ipython-input-4-7a90d3d7dae2> in <module>()</div><div>----> 1 plot = yt.ProjectionPlot(ds,'x',fields=('gas', 'density'), weight_field=('gas', 'density'), width=(1.0,'unitary'), center=[0.5,0.5,0.5]).save()</div>
<div><br></div><div>/Users/bwoshea/Desktop/yt-3.0/src/yt-hg/yt/visualization/plot_container.pyc in save(self, name, mpl_kwargs)</div><div>    464             weight = self.data_source.weight_field</div><div>    465             if weight is not None:</div>
<div>--> 466                 weight = weight.replace(' ', '_')</div><div>    467         if 'Cutting' in self.data_source.__class__.__name__:</div><div>    468             type = 'OffAxisSlice'</div>
<div><br></div><div>AttributeError: 'tuple' object has no attribute 'replace'</div></div><div><br></div><div>I would note that if I use 'density' instead of ('gas','density') for the weight_field, everything works fine.  Is this the expected behavior, or is this a bug?  </div>
<div><br></div><div>Thanks!</div><div><br></div><div>--Brian</div><div><br></div></div>