<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">Hi Elizabeth,<div class=""><br class=""></div><div class="">Sorry to hear you’re having trouble!</div><div class=""><br class=""></div><div class=""><div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">I've hit a couple of problems trying to generate a particle distribution. I'm following the code here:</div><div class=""><br class=""></div><div class=""><a href="http://blog.yt-project.org/post/ParticleGenerator.html" class="">http://blog.yt-project.org/post/ParticleGenerator.html</a><br class=""></div><div class=""><br class=""></div><div class="">(at the moment exactly: <a href="http://pastebin.com/JFnWeXqM" class="">http://pastebin.com/JFnWeXqM</a> )</div></div></div></blockquote><div><br class=""></div><div>I’ve identified a few bugs here that I’m going to fix sometime in the next couple of days. </div></div><div><div><br class=""></div><blockquote type="cite" class=""><div class=""><div dir="ltr" class=""><div class="">The first issue was CICDeposit_3 doesn't seem to exist, but from the source code, it looks like it is now  CICSample_3 via "from yt.utilities.lib.CICDeposit import CICSample_3”. </div></div></div></blockquote><div><br class=""></div>CICDeposit and CICSample are actually the opposite of each other—the first deposits particle quantities onto the mesh, the second interpolates mesh quantities onto the particles. I’m not sure why CICDeposit_3 wasn’t in your repo—I can import it over here. </div><div><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">I switched this but then hit a different error:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">In [1]: execfile("particle_generator.py")</div><div class="">yt : [INFO     ] 2014-10-14 17:51:59,895 Parameters: current_time              = 0.0</div><div class="">yt : [INFO     ] 2014-10-14 17:51:59,895 Parameters: domain_dimensions         = [128 128 128]</div><div class="">yt : [INFO     ] 2014-10-14 17:51:59,895 Parameters: domain_left_edge          = [ 0.  0.  0.]</div><div class="">yt : [INFO     ] 2014-10-14 17:51:59,896 Parameters: domain_right_edge         = [ 1.  1.  1.]</div><div class="">yt : [INFO     ] 2014-10-14 17:51:59,897 Parameters: cosmological_simulation   = 0.0</div><div class="">---------------------------------------------------------------------------</div><div class="">KeyError                                  Traceback (most recent call last)</div><div class="">/home/tasker/yt-3/src/yt-hg/scripts/iyt in <module>()</div><div class="">----> 1 execfile("particle_generator.py")</div><div class=""><br class=""></div><div class="">/home/tasker/yt-3/src/yt-hg/scripts/iyt in <module>()</div><div class="">     39          'particle_position_y':y,</div><div class="">     40          'particle_position_z':z}</div><div class="">---> 41 particles1 = FromListParticleGenerator(ug, num_particles1, pdata)</div><div class="">     42 particles1.assign_indices()</div><div class="">     43 particles1.apply_to_stream()</div><div class=""><br class=""></div><div class="">/home/tasker/yt-3/src/yt-hg/yt/utilities/particle_generator.pyc in __init__(self, ds, num_particles, data)</div><div class="">    227 </div><div class="">    228         field_list = data.keys()</div><div class="">--> 229         x = data.pop(("io", "particle_position_x"))</div><div class="">    230         y = data.pop(("io", "particle_position_y"))</div><div class="">    231         z = data.pop(("io", "particle_position_z"))</div><div class=""><br class=""></div><div class="">KeyError: ('io', 'particle_position_x’)</div></div></div></blockquote><div><br class=""></div>This is actually unrelated to the switch you made and is just a bug in ParticleGenerator that I’ll fix. <br class=""><br class=""><blockquote type="cite" class=""><div dir="ltr" class=""><div class="">I tried updating the code, but 'yt update' then seemed to pull me back from yt-3.0 which I thought I was running (is branch 'yt' now yt-3?) to yt 2:</div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><br class=""></div><div class=""><div class="">tasker@schiehallion:~/yt-3/bin$ yt update</div><div class="">yt : [INFO     ] 2014-10-14 17:48:23,618 Loading plugins from /home/tasker/.yt/my_plugins.py</div><div class=""><br class=""></div><div class="">yt module located at:</div><div class="">    /home/tasker/yt-new/src/yt-hg</div><div class=""><br class=""></div><div class="">The current version and changeset for the code is:</div><div class=""><br class=""></div><div class="">---</div><div class="">Version = 2.6.1</div><div class="">Changeset = f7c69809dbd0 (stable)</div><div class="">---</div><div class=""><br class=""></div><div class="">This installation CAN be automatically updated.</div><div class="">Reading configuration from  /home/tasker/yt-new/src/yt-hg/.hg/hgrc</div></div></div></blockquote><div><br class=""></div>On this, I’m not sure what is going on, except that I can verify that the ‘yt’ branch is now 3.0.</div><div><br class=""></div></div><div>Best,</div><div><br class=""></div><div>John</div></body></html>