<div dir="ltr"><div><div><div>So the error is coming from inside yt. Somehow yt is creating an array with shape (128) and trying to fill it with values from an array with shape (128, 128), causing numpy to complain. Unfortunately I'm still not sure what the underlying issue is just from looking at your code and the traceback. It's possible it's a yt bug, it's also possible that it's an issue in your notebook.<br></div><br></div>Is there any chance you can make a script I can run that triggers the issue? That will make it much easier to understand what's going wrong. You could also just share your full notebook.<br><br>If you can, please make use of a dataset from <a href="http://yt-project.org/data">yt-project.org/data</a> in your script. If that's not possible, you can also upload a dataset to the yt curldrop using the "yt upload" command line tool:<br><br></div><div>$ yt upload /path/to/dataset.tar.gz</div><div><br></div><div>and then include the link to the dataset that yt upload will print out once it's finished uploading the data.<br></div><div><br></div><div>-Nathan<br></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 5:15 PM, tyuta <span dir="ltr"><<a href="mailto:y0u1t1a5.t@gmail.com" target="_blank">y0u1t1a5.t@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">Dear Nathan,<div><br></div><div>Sorry for the incompleteness.</div><div>This is the error message from jupyter notebook:</div><div><br></div><div><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;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 class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">ValueError</span>Traceback (most recent call last)
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"><ipython-input-63-<wbr>383c90a16917></span> in <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)"><module></span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">()</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     11</span>                             fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">"cell_mass"</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     12</span>                             weight_field<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span>None<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span>
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">---> 13</span><span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">                             </span>extrema<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span>dict<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>density<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e-30</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e-20</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> temperature<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e1</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e8</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     14</span>                            )
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     15</span> 

<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">/home/ytarumi/.local/yt/yt/<wbr>data_objects/profiles.pyc</span> in <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">create_profile</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(data_source, bin_fields, fields, n_bins, extrema, logs, units, weight_field, accumulation, fractional, deposition)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1093</span>     setattr<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>obj<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">"fractional"</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> fractional<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1094</span>     <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> fields <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">is</span> <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">not</span> None<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">-> 1095</span><span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">         </span>obj<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>add_fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>field <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> field <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1096</span>     <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> field <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1097</span>         <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> fractional<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>

<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">/home/ytarumi/.local/yt/yt/<wbr>data_objects/profiles.pyc</span> in <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">add_fields</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(self, fields)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    125</span>         citer <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>data_source<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>chunks<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">"io"</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    126</span>         <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> chunk <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> parallel_objects<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>citer<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">--> 127</span><span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">             </span>self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>_bin_chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> temp_storage<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    128</span>         self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>_finalize_storage<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> temp_storage<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    129</span> 

<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">/home/ytarumi/.local/yt/yt/<wbr>data_objects/profiles.pyc</span> in <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">_bin_chunk</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(self, chunk, fields, storage)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    565</span> 
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    566</span>     <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">def</span> _bin_chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> storage<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">--> 567</span><span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">         </span>rv <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>_get_data<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    568</span>         <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> rv <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">is</span> None<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span> <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">return</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    569</span>         fdata<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> wdata<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>bf_x<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> bf_y<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span> <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> rv

<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">/home/ytarumi/.local/yt/yt/<wbr>data_objects/profiles.pyc</span> in <span class="m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">_get_data</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(self, chunk, fields)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    253</span>         <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> i<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> field <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> enumerate<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>fields<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    254</span>             units <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>ds<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>field_info<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>field<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>out<wbr>put_units
<span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">--> 255</span><span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">             </span>arr<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span>i<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span> <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>field<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>filter<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>in_units<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><wbr>units<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    256</span>         <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>weight_field <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">is</span> <span class="m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">not</span> None<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_-7393506240681800800gmail-ansi-green-intense-fg m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">    257</span>             units <span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span> chunk<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>ds<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>field_info<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>self<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>weigh<wbr>t_field<span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>output_units

<span class="m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">ValueError</span>: could not broadcast input array from shape (128,128) into shape (128)</pre></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-11-03 17:08 GMT-04:00 Nathan Goldbaum <span dir="ltr"><<a href="mailto:nathan12343@gmail.com" target="_blank">nathan12343@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Can you share the full traceback along with the error message you're seeing? You can use <a href="http://gist.github.com" target="_blank">gist.github.com</a> to avoid cluttering your e-mail.<br></div><div class="m_-7393506240681800800HOEnZb"><div class="m_-7393506240681800800h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 3:54 PM, tyuta <span dir="ltr"><<a href="mailto:y0u1t1a5.t@gmail.com" target="_blank">y0u1t1a5.t@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"><div>Dear yt-users,</div><div><br></div><div>Hi, I want to ask <span style="font-size:14px">you about phase plot. Some days ago, I asked how to sum up different datasets to make one profile plot, and it worked fine. This time, I tried to do the same thing in phase plot, but it did not work fine. Could you help me find out what the problem is?</span></div><div><br></div><div>(inside for loop):</div><div><div>     profile_medium = yt.create_profile(</div><div>             data_source=medium_region,</div><div>             bin_fields=["density", "temperature"],</div><div>             fields=["cell_mass"],</div><div>             n_bins=[128, 128],</div><div>             units=dict(),</div><div>             logs=dict(),</div><div>             weight_field=None,</div><div>             extrema=dict(density=(1e-30, 1e-20), temperature=(1e1, 1e8))</div><div>          )</div><div>     plot_med = yt.ProfilePlot.from_profiles(p<wbr>rofile_medium)</div></div><div>     profile_med = plot_med.profiles[0]<br></div><div>     profiles_sum_med = profiles_sum_med + profile_med["cell_mass"]</div><div>    <br></div><div><br></div><div>my_data_med = {"density": profile_med.x,   <br></div><div>           "temperature": profile_med.y, </div><div>              "cell_mass": profiles_sum_med}</div><div>fake_ds_med = {"current_time": yt.YTQuantity(10, "Myr")} <br></div><div>yt.save_as_dataset(fake_ds_med<wbr>, "phaseplots_med_all.h5", my_data_med)<br></div><div><br></div><div class="gmail_extra">ds = yt.load("phaseplots_med_all.h5<wbr>")</div><div class="gmail_extra">ad = ds.data<br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><div class="gmail_extra">profile = yt.create_profile(ad,</div><div class="gmail_extra">                            ["density", "temperature"],</div><div class="gmail_extra">                            n_bins=[128, 128],</div><div class="gmail_extra">                            fields=["cell_mass"], </div><div class="gmail_extra">                            weight_field=None, </div><div class="gmail_extra">                            extrema=dict(density=(1e-30, 1e-20), temperature=(1e1, 1e8))</div><div class="gmail_extra">                           )</div><div class="gmail_extra"><br></div><div class="gmail_extra">and I got this error:</div><div class="gmail_extra"><br></div><div class="gmail_extra"><pre style="box-sizing:border-box;overflow:auto;font-size:14px;padding:0px;margin-top:0px;margin-bottom:0px;line-height:inherit;word-break:break-all;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">could not broadcast input array from shape (128,128) into shape (128)
</pre><div><br></div></div></div><div class="gmail_extra">Sincerely,</div><div class="gmail_extra">Y.T.</div><div><div class="m_-7393506240681800800m_-1284680656606917414h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-10-26 16:15 GMT-04:00 tyuta <span dir="ltr"><<a href="mailto:y0u1t1a5.t@gmail.com" target="_blank">y0u1t1a5.t@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex"><div dir="ltr">Hi Suoqing Ji,<div><br></div><div>Thanks! I'll try that.</div></div><div class="m_-7393506240681800800m_-1284680656606917414m_-6964613110968455500gmail-m_1518026569579770407gmail-HOEnZb"><div class="m_-7393506240681800800m_-1284680656606917414m_-6964613110968455500gmail-m_1518026569579770407gmail-h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-10-26 15:59 GMT-04:00 Suoqing Ji <span dir="ltr"><<a href="mailto:suoqing@physics.ucsb.edu" target="_blank">suoqing@physics.ucsb.edu</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-style:solid;border-left-color:rgb(204,204,204);padding-left:1ex">



<div>
<div name="messageBodySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif">Hi t yuta,
<div><br></div>
<div>What you can do is to get the data as numpy array directly from the profiles you’ve generated, and sum them up by yourself. You can follow the last example at: <a href="http://yt-project.org/docs/dev/visualizing/plots.html#d-profile-plots" target="_blank">http://yt-project.org/docs<wbr>/dev/visualizing/plots.html#d-<wbr>profile-plots</a></div>
<div><br></div>
<div>For each dataset, you can have one profile:</div>
<div>profile = plot.profiles[0]</div>
<div><br></div>
<div>Then you can sum up profile[‘cell_mass'] over different datasets, and plot it against profile.x</div>
</div>
<div name="messageSignatureSection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><br>
Best wishes,
<div>—</div>
<div>Suoqing Ji</div>
<div>Ph.D Candidate</div>
<div>Department of Physics</div>
<div>University of California, Santa Barbara</div>
<div><a href="http://physics.ucsb.edu/~suoqing" target="_blank">http://physics.ucsb.edu/~suoqi<wbr>ng</a></div>
</div>
<div name="messageReplySection" style="font-size:14px;font-family:-apple-system,BlinkMacSystemFont,sans-serif"><div><div class="m_-7393506240681800800m_-1284680656606917414m_-6964613110968455500gmail-m_1518026569579770407gmail-m_5603446816555027922h5"><br>
On Oct 26, 2017, 12:51 PM -0700, tyuta <<a href="mailto:y0u1t1a5.t@gmail.com" target="_blank">y0u1t1a5.t@gmail.com</a>>, wrote:<br>
</div></div><blockquote type="cite" style="margin:5px;padding-left:10px;border-left-width:thin;border-left-style:solid;border-left-color:rgb(26,188,156)"><div><div class="m_-7393506240681800800m_-1284680656606917414m_-6964613110968455500gmail-m_1518026569579770407gmail-m_5603446816555027922h5">
<div dir="ltr">Dear yt-users,<br>
<div><br></div>
<div>Hi, I want to ask you about profile plot. I'm analyzing Enzo data, and I'm trying to plot metallicity-cellmass of different 12 datasets into one curve. I can plot 12 curves on one image, but that's not what I want. Does anyone know some good way, or links to documentation?</div>
<div>I've attached the 12-curve plot. I want to sum up all the curves to get one curve.</div>
<div><br></div>
<div>Thanks,</div>
<div>Y.T.<img src="cid:02C67ABD76E846418AE113C0B10469D2" alt="埋め込み画像 2" width="426" height="341"></div>
</div></div></div>
______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">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/lis<wbr>tinfo.cgi/yt-users-spacepope.o<wbr>rg</a><br></blockquote>
</div>
</div>

<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.o<wbr>rg</a><br>
<br></blockquote></div><br></div>
</div></div></blockquote></div><br></div></div></div></div>
<br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.o<wbr>rg</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org" target="_blank">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" rel="noreferrer" target="_blank">http://lists.spacepope.org/lis<wbr>tinfo.cgi/yt-users-spacepope.<wbr>org</a><br>
<br></blockquote></div><br></div>
</div></div><br>______________________________<wbr>_________________<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" rel="noreferrer" target="_blank">http://lists.spacepope.org/<wbr>listinfo.cgi/yt-users-<wbr>spacepope.org</a><br>
<br></blockquote></div><br></div>