<div dir="ltr">Hi YT,<div><br></div><div>Nathan and I have fleshed this out a bit in the discussion on the issue he created.</div><div><br></div><div>The main issue is that phase plots need to have all fields to be the same shape.  So the x and y fields also have to be 128x128.  You can make this happen in the following way:</div><div>Given a profile object called "profile":</div><div><font face="monospace, monospace">x = yt.YTArray([profile.x]*128)</font></div><div><font face="monospace, monospace">y = yt.YTArray([profile.y]*128).transpose()</font></div><div><font face="monospace, monospace"><br></font></div><div>If you then use those x and y in your save_as_dataset call, you should be able to use the loaded data with phaseplot.<font face="monospace, monospace"><br></font></div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 4:34 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">I was saving data just because I don't know how to sum up field values (in this case, "cell_mass") in other way. What I ultimately want to do is to make one phase plot which has "density", "temperature" bin fields, and the "cell_mass" is summed up through all different datasets (like, <span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">IsolatedGalaxy/<wbr>galaxy0030/galaxy0030, </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">IsolatedGalaxy/galaxy0029/<wbr>galaxy0029, </span><span style="color:rgb(36,41,46);font-family:SFMono-Regular,Consolas,"Liberation Mono",Menlo,Courier,monospace;font-size:12px;white-space:pre-wrap">IsolatedGalaxy/galaxy0028/<wbr>galaxy0028, ...).</span><div>Is it possible to sum up "<span class="m_8725221709222831070gmail-n" style="color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box">prof_2d_ds</span><span class="m_8725221709222831070gmail-o" style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box;color:rgb(102,102,102)">.</span><span class="m_8725221709222831070gmail-n" style="color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box">data</span><span class="m_8725221709222831070gmail-n" style="box-sizing:border-box"> </span><span class="m_8725221709222831070gmail-p" style="color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box">[</span><span class="m_8725221709222831070gmail-s2" style="font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box;color:rgb(186,33,33)">"cell_mass"</span><span class="m_8725221709222831070gmail-p" style="color:rgb(51,51,51);font-family:Menlo,Monaco,Consolas,"Courier New",monospace;font-size:15px;box-sizing:border-box">]<wbr>"</span> in the example from different datasets?</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-11-03 19:05 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"><div><div><div>So what's happening is that when you're save_as_dataset at the end of your notebook, you save data with incompatible shapes. In particular, 'density' and 'temperature' have shape (128) while 'cell_mass' has shape (128, 128). We should probably error out in cases like this because the resulting dataset is corrupt - all fields in a single dataset should have the same shape. The error you're seeing happens when yt tries to create an empty array to hold the cell_mass data from your saved dataset by using the shape of one of the bin fields. This leads to an error because the cell_mass field in your saved dataset has a different shape.<br></div><br></div>One thing that might be immediately helpful is to save your individual profile objects you want to sum, reload those, and then combine the data? You can save profile objects with save_as_dataset:<br><br><a href="http://yt-project.org/docs/dev/analyzing/saving_data.html#profiles" target="_blank">http://yt-project.org/docs/dev<wbr>/analyzing/saving_data.html#<wbr>profiles</a><br></div><div><br></div><div>Another option would be to eschew using the ytdata frontend entirely and just save the density, temperature, and cell_mass profile fields you want save using e.g. h5py and then construct the plot you want to make using those data.</div><div><br></div><div>It's not clear to me what you ultimately want to do with your saved data
 - maybe if you explain that in a little more detail I can suggest what 
you might want to do to restructure your workflow.</div></div><div class="m_8725221709222831070HOEnZb"><div class="m_8725221709222831070h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Nov 3, 2017 at 5:53 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>I tried on "Isolatedgalaxy" data. I made all the outputs to comments.</div><div><br></div><div><a href="https://gist.github.com/Yuta-Tarumi/69ed0428db92553cd4f8ef9392429036#file-phase-plots-summing-up" target="_blank">https://gist.github.com/Yuta-T<wbr>arumi/69ed0428db92553cd4f8ef93<wbr>92429036#file-phase-plots-summ<wbr>ing-up</a><br></div><div><br></div><div><br></div></div><div class="m_8725221709222831070m_-486286985931344407HOEnZb"><div class="m_8725221709222831070m_-486286985931344407h5"><div class="gmail_extra"><br><div class="gmail_quote">2017-11-03 18:29 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"><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" target="_blank">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.<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660HOEnZb"><font color="#888888"><br></font></span></div><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660HOEnZb"><font color="#888888"><div><br></div><div>-Nathan<br></div></font></span></div><div class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660HOEnZb"><div class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660h5"><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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">ValueError</span>Traceback (most recent call last)
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)"><ipython-input-63-383c90a16917<wbr>></span> in <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)"><module></span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">()</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     11</span>                             fields<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">"cell_mass"</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     12</span>                             weight_field<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span>None<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">---> 13</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">                             </span>extrema<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span>dict<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>density<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e-30</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e-20</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> temperature<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">=</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e1</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">1e8</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     14</span>                            )
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">     15</span> 

<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">/home/ytarumi/.local/yt/yt/dat<wbr>a_objects/profiles.pyc</span> in <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-cyan-fg" style="box-sizing:border-box;color:rgb(96,198,200)">create_profile</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1093</span>     setattr<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span>obj<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">"fractional"</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">,</span> fractional<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1094</span>     <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> fields <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">is</span> <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">not</span> None<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">-> 1095</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-red-fg" style="box-sizing:border-box;color:rgb(231,92,88)">         </span>obj<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">.</span>add_fields<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">(</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">[</span>field <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> field <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> fields<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">]</span><span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">)</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1096</span>     <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">for</span> field <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">in</span> fields<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>
<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-intense-fg m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-bold" style="box-sizing:border-box;color:rgb(0,116,39);font-weight:bold">   1097</span>         <span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-green-fg" style="box-sizing:border-box;color:rgb(0,162,80)">if</span> fractional<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800gmail-ansi-blue-fg" style="box-sizing:border-box;color:rgb(32,143,251)">:</span>

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

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

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

<span class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157HOEnZb"><div class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157h5"><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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800HOEnZb"><div class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-7393506240681800800m_-1284680656606917414m_-6964613110968455500gmail-m_1518026569579770407gmail-HOEnZb"><div class="m_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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_8725221709222831070m_-486286985931344407m_-3221317201627196660m_-3137291831268226157m_-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.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.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.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.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>