<div dir="ltr"><div><div><div>Hi yt users,<br><br></div>I have been having trouble using BinnedProfile1D. I am using the same script that seemed to be working before. Now it is giving me "MemoryError":<br><a href="http://paste.yt-project.org/show/A67caGKsv6mFqA83MZoZ/" target="_blank">http://paste.yt-project.org/show/A67caGKsv6mFqA83MZoZ/</a><br>
<br></div>I can still use it on a low resolution run without a problem.<br><br><br></div><div>I am not sure why it needs so much memory (I am already asking for 30 gb of memory). If I do a similar analysis with plotcollection and add_profile_sphere for the same data, I do not need to ask for much memory at all. I thought BinnedProfile1D would need less memory than add_profile_sphere. Please let me know if I was wrong and the job simply requires a lot of memory.</div>
<div><br></div><div style>What I am trying to do is just very basic analysis:</div><div style>...</div><div style>sp=pf.h.sphere([0.5, 0.5, 0.5], rmax/pf['kpc'])<br></div><div style>sp_in=sp.cut_region(["grid['Theta']>0.6"])<br>
</div><div style>prof=BinnedProfile1D(sp_in, 128, "Radiuskpc", 1e-2,rmax)</div><div style>r=prof["Radiuskpc"]<br>
prof.add_fields("Temperature",weight="CellMassMsun")<br>...</div><div style><br></div><div style><br></div><div style>It usually fails at the temperature part. Please let me know if you have any ideas or suggestions.</div>
<div style><br></div><div style>Thank you!</div><div style>Yuan</div></div>