Hi, What version of FLASH is your file from? Also, do you have a file that we could test that has this problem? You can upload files this way: https://docs.hub.yt/services.html#curldrop Best, John Dr. John ZuHone Astrophysicist, Chandra X-ray Center Center for Astrophysics | Harvard & Smithsonian Office: (617) 496 1816 | Cell: (781) 708 5004 60 Garden Street | MS 03 | Cambridge, MA 02138 john.zuhone@cfa.harvard.edu http://hea-www.cfa.harvard.edu/~jzuhone
On Dec 15, 2018, at 1:38 PM, saurabhisreachable@gmail.com wrote:
Hi, I referred to the relevant part of the documentation about FLASH particle data on, http://yt-project.org/doc/analyzing/particle_trajectories.html and managed to post process a series of data files that have just 1 single particle in it.
When I used multiple particles in the simulation, at the step where we do the following,
ds = yt.load(my_fns[0]) dd = ds.all_data() indices = dd["particle_index"].astype("int")
I got the following error:
~/.local/lib/python3.6/site-packages/yt/frontends/flash/io.py in <listcomp>(.0) 171 self._particle_fields = determine_particle_fields(self._handle) 172 self._position_fields = [self._particle_fields["particle_pos%s" % ax] --> 173 for ax in 'xyz'] 174 self._chunksize = 32**3 175
KeyError: 'particle_posx'
I am new to YT in general and facing a difficulty in understanding what's the problem. As per the documentation, the syntax should work for multiple particles. Do you think that it could be FLASH issue? What are the ways you would go about debugging it? Thanks. _______________________________________________ yt-users mailing list -- yt-users@python.org To unsubscribe send an email to yt-users-leave@python.org