<div dir="ltr">Hi yt users,<div><br></div><div>I'm trying to make a light ray for a gadget dataset using this script: <a href="http://paste.yt-project.org/show/6234/" target="_blank">http://paste.yt-project.org/show/6234/</a></div><div><br></div><div>But I get the following error:</div><div><br></div><div>```</div><div><pre style="overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;color:rgb(0,0,0);background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;white-space:pre-wrap;vertical-align:baseline"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span style="color:rgb(139,0,0)"><span style="color:rgb(70,130,180)"><span style="color:rgb(0,100,0)"><span>/Users/qobilidop/repos/yt/yt/geometry/geometry_handler.py</span> in <span style="color:rgb(70,130,180)">fcoords<span style="color:rgb(0,0,139)">(self)</span>
<span style="color:rgb(0,100,0)">    320</span>             c <span style="color:rgb(0,0,139)">=</span> obj<span style="color:rgb(0,0,139)">.</span>select_fcoords<span style="color:rgb(0,0,139)">(</span>self<span style="color:rgb(0,0,139)">.</span>dobj<span style="color:rgb(0,0,139)">)</span><span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">    321</span>             <span style="color:rgb(0,100,0)">if</span> c<span style="color:rgb(0,0,139)">.</span>shape<span style="color:rgb(0,0,139)">[</span><span>0</span><span style="color:rgb(0,0,139)">]</span> <span style="color:rgb(0,0,139)">==</span> <span>0</span><span style="color:rgb(0,0,139)">:</span> <span style="color:rgb(0,100,0)">continue</span><span style="color:rgb(0,0,139)"></span>
<span style="color:rgb(0,100,0)">--> 322<span style="color:rgb(139,0,0)">             </span>ci<span style="color:rgb(0,0,139)">[</span>ind<span style="color:rgb(0,0,139)">:</span>ind<span style="color:rgb(0,0,139)">+</span>c<span style="color:rgb(0,0,139)">.</span>shape<span style="color:rgb(0,0,139)">[</span><span style="color:rgb(70,130,180)">0</span><span style="color:rgb(0,0,139)">]</span><span style="color:rgb(0,0,139)">,</span> <span style="color:rgb(0,0,139)">:</span><span style="color:rgb(0,0,139)">]</span> <span style="color:rgb(0,0,139)">=</span> c<span style="color:rgb(0,0,139)"></span>
<span>    323</span>             ind <span style="color:rgb(0,0,139)">+=</span> c<span style="color:rgb(0,0,139)">.</span>shape<span style="color:rgb(0,0,139)">[</span><span style="color:rgb(70,130,180)">0</span><span style="color:rgb(0,0,139)">]</span><span style="color:rgb(0,0,139)"></span>
<span>    324</span>         <span>return</span> ci<span style="color:rgb(0,0,139)"></span>

<span style="color:rgb(139,0,0)">ValueError</span>: could not broadcast input array from shape (81,3) into shape (40,3)</span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></span></pre><pre style="overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;color:rgb(0,0,0);background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;white-space:pre-wrap;vertical-align:baseline"><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:small;white-space:normal">```</span><br></pre><pre style="overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;color:rgb(0,0,0);background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;white-space:pre-wrap;vertical-align:baseline"><br></pre><pre style="overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;color:rgb(0,0,0);background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;white-space:pre-wrap;vertical-align:baseline">M<font face="arial, sans-serif" style="color:rgb(34,34,34)"><span style="white-space:normal">y yt is on the </span><span style="white-space:normal">changeset </span></font><span style="color:rgb(34,34,34);font-family:arial,sans-serif">d47150dfbde6.</span></pre><pre style="overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;vertical-align:baseline"><font face="arial, sans-serif"><span style="white-space:normal"><br></span></font></pre><pre style="overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;vertical-align:baseline"><font face="arial, sans-serif"><span style="white-space:normal">I'm wondering if I'm doing it the correct way? And how could I solve the problem?</span></font></pre><pre style="overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;vertical-align:baseline"><span style="font-family:arial,sans-serif"><br></span></pre><pre style="overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;vertical-align:baseline"><span style="font-family:arial,sans-serif">Thanks,</span></pre><pre style="overflow:auto;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-wrap:break-word;background-color:transparent;border:0px;border-top-left-radius:0px;border-top-right-radius:0px;border-bottom-right-radius:0px;border-bottom-left-radius:0px;vertical-align:baseline"><span style="font-family:arial,sans-serif">Bili</span></pre></div></div>