<meta http-equiv="Content-Type" content="text/html; charset=utf-8"><div dir="ltr">Hi Josh,<div><br></div><div>The reason that's not working is that there is still only one storage item (the sto variable) per iteration of the loop.  You could keep both things if you make sto.result a list object and just append each of those things to that list.</div><div><br></div><div>Britton</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Sun, May 24, 2015 at 11:12 AM, Joshua Wall <span dir="ltr"><<a href="mailto:joshua.e.wall@gmail.com" target="_blank">joshua.e.wall@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><div><div><div><div><div><div><div><div><div>Dear users,<br><br><br></div>     This there a simple way to store multiple values at each step using parallel_objects? I'm doing:<br><br>########################################################<br></div><div>yt.enable_parallelism()<br>num_procs = 4<br></div><div>plot = glob.glob(./plot*)<br></div>my_storage = {}<br><br></div>for sto, p in yt.parallel_objects(plots, num_procs, my_storage):<br><br></div>  sto.result_id = 'energy' + p<br></div>  sto.resutl     = dd["total_energy"]<br><br></div>  sto.result_id = 'Px' + p<br></div>  sto.result     = dd["total_mom_x"]<br><br>######################################################<br><br></div>which is just overwriting my energy with the momentum. I also tried to just set to different dictionaries without passing it to yt.parallel_objects as storage, but of course each proc as only a local copy then.<br><br></div>Cordially,<br></div><div><br></div>Josh<br></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.spacepope.org_listinfo.cgi_yt-2Dusers-2Dspacepope.org&d=AwMFaQ&c=8hUWFZcy2Z-Za5rBPlktOQ&r=hgcBC3x6dKFoTrmFmMYYbKNfiHZlGLKliIidd1LwmHI&m=4UQB7qJmp3zK0PrU4eiL01GTkd2If6kl58HmeHPffGg&s=T9pgq5o0LcYEJQU03PLoGcWS5SD_iNtIgEhkYebEJxQ&e=" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>