<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
</head>
<body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">
Scratch that, my fixes are for the volume renderer.
<div><br>
<div apple-content-edited="true">
<div style="color: rgb(0, 0, 0); font-family: Helvetica;  font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: -webkit-auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">
<div>Douglas Rudd</div>
<div>Scientific Computing Consultant<br>
Research Computing Center<br>
</div>
<div><a href="mailto:drudd@uchicago.edu">drudd@uchicago.edu</a></div>
</div>
<br class="Apple-interchange-newline">
<br class="Apple-interchange-newline">
</div>
<br>
<div style="">
<div>On Aug 31, 2014, at 10:08 PM, Nathan Goldbaum <<a href="mailto:nathan12343@gmail.com">nathan12343@gmail.com</a>> wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div dir="ltr">I'll have a bugfix done in a few minutes.</div>
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Aug 31, 2014 at 8:07 PM, Brian O'Shea <span dir="ltr">
<<a href="mailto:bwoshea@gmail.com" target="_blank">bwoshea@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Ah, ok - would you like me to file a bug report?</div>
<div class="HOEnZb">
<div class="h5">
<div class="gmail_extra"><br>
<br>
<div class="gmail_quote">On Sun, Aug 31, 2014 at 10:33 PM, Matthew Turk <span dir="ltr">
<<a href="mailto:matthewturk@gmail.com" target="_blank">matthewturk@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<p dir="ltr">It's a bug. It is assuming that weight field is a string, but it's a tuple. The behavior I think it should do is check if it's a tuple, and if it is, either join with spaces or use element 1.</p>
<div class="gmail_quote">
<div>On Aug 31, 2014 9:29 PM, "Brian O'Shea" <<a href="mailto:bwoshea@gmail.com" target="_blank">bwoshea@gmail.com</a>> wrote:<br type="attribution">
</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>
<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>
<br>
</div>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org" target="_blank">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
</div>
</div>
<br>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org</a><br>
<br>
</blockquote>
</div>
<br>
</div>
_______________________________________________<br>
yt-dev mailing list<br>
<a href="mailto:yt-dev@lists.spacepope.org">yt-dev@lists.spacepope.org</a><br>
http://lists.spacepope.org/listinfo.cgi/yt-dev-spacepope.org<br>
</blockquote>
</div>
<br>
</div>
</body>
</html>