<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Mar 27, 2015 at 10:00 AM, Andrew James Emerick <span dir="ltr"><<a href="mailto:aje2123@columbia.edu" target="_blank">aje2123@columbia.edu</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">Hello everyone,<div><br></div><div>I just ran into an error in using "data_source" kwarg with the SlicePlot function (error message copied below):</div><div><br></div><div><div>slice = yt.SlicePlot(ds, axis, field, data_source=region)</div><div>File "/home/emerick/.local/lib/python2.7/site-packages/yt-3.1dev-py2.7-linux-x86_64.egg/yt/visualization/plot_window.py", line 1816, in SlicePlot</div><div>    return AxisAlignedSlicePlot(ds, normal, fields, *args, **kwargs)</div><div>TypeError: __init__() got an unexpected keyword argument 'data_source'</div><div><br></div><div>I have no problem doing the above with ProjectionPlot. If anyone knows what could be causing this I'd appreciate the help. Otherwise I can do some digging into the code myself.</div><div><br></div></div></div></blockquote><div><br></div><div>Hi Andrew,</div><div><br></div><div>This should work, but might not if you haven't updated yt in a while.  Can you update to the latest development version and try again?</div><div><br></div><div>-Nathan</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div><div><br></div><div><br></div><div>Thanks,</div><div>Andrew E.</div><span class="HOEnZb"><font color="#888888">-- <br><div><div dir="ltr"><div style="font-family:arial;font-size:small">Graduate Student </div><div style="font-family:arial;font-size:small">Columbia University</div><div style="font-family:arial;font-size:small">Department of Astronomy</div></div></div>
</font></span></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div></div>