yt_analysis is sharing code with you

Bitbucket is a code hosting site. Unlimited public and private repositories. Free for small teams.

Don't show this again

yt_analysis / yt http://yt-project.org/

yt is a python package for analyzing and visualizing astrophysical simulation output from a couple simulation platforms. Check out the homepage (there's a link just above!) where we have documentation, a cookbook, and some user community information.

Clone this repository (size: 41.0 MB): HTTPS / SSH
hg clone https://bitbucket.org/yt_analysis/yt
hg clone ssh://hg@bitbucket.org/yt_analysis/yt

Issues

#230 error getting ParticleMassMsun with particle io

Reported by yt_analysis (last edited )

Imported Ticket

  • Summary: error getting ParticleMassMsun with particle io
  • Component: yt
  • Milestone: 2.0
  • Reporter: britton
  • Owner: mturk
  • Resolution: fixed
  • Status: closed
  • Created: 1259430726000000
  • Description: I'm getting a particle io error when using the various yt halo finders in parallel. It doesn't appear to have anything to do with the halo finders, but I don't know what else uses ParticleIO.py. This only happens when running in parallel.

P000 yt INFO 2009-11-27 15:16:59,775 Getting ParticleMassMsun using ParticleIO Setting period equal to 1.000000 Setting period equal to 1.000000 Setting period equal to 1.000000 Traceback (most recent call last): File "do_hop.py", line 5, in <module> h = FOFHaloFinder(pf) File "/Users/britton/Documents/work/yt-hg/yt/lagos/HaloFinding.py", line 1024, in init self._parse_halolist(1.) File "/Users/britton/Documents/work/yt-hg/yt/lagos/HaloFinding.py", line 747, in _parse_halolist this_max_dens = halo.maximum_density_location() File "/Users/britton/Documents/work/yt-hg/yt/lagos/ParallelTools.py", line 130, in single_proc_results return func(self, *args, kwargs) File "/Users/britton/Documents/work/yt-hg/yt/lagos/HaloFinding.py", line 322, in maximum_density_location return self.center_of_mass() File "/Users/britton/Documents/work/yt-hg/yt/lagos/ParallelTools.py", line 130, in single_proc_results return func(self, *args, kwargs) File "/Users/britton/Documents/work/yt-hg/yt/lagos/HaloFinding.py", line 306, in center_of_mass pm = self["ParticleMassMsun"] File "/Users/britton/Documents/work/yt-hg/yt/lagos/ParallelTools.py", line 130, in single_proc_results return func(self, *args, kwargs) File "/Users/britton/Documents/work/yt-hg/yt/lagos/HaloFinding.py", line 136, in getitem return self.data.particles[key][self.indices] File "/Users/britton/Documents/work/yt-hg/yt/lagos/ParticleIO.py", line 46, in getitem self.get_data(key) File "/Users/britton/Documents/work/yt-hg/yt/lagos/ParticleIO.py", line 104, in get_data if len(to_add) != 1: raise KeyError KeyError

I checked the contents of to_add, and it was a list with two items (hence the exception): ['particle_mass', 'particle_mass']

Update to Ticket

  • Author: mturk
  • Changetime: 1264192457000000
  • Field: status
  • Oldvalue: new
  • Newvalue: closed

Update to Ticket

  • Author: mturk
  • Changetime: 1264192457000000
  • Field: resolution
  • Oldvalue: None
  • Newvalue: fixed

Update to Ticket

  • Author: mturk
  • Changetime: 1264192457000000
  • Field: comment
  • Oldvalue: 1
  • Newvalue: Britton fixed this a while ago
Status: resolved Responsible: nobody Type: bug Priority: major
Milestone: 2.0 Component: yt Version: none

Attachments

No attachments added for this issue yet.

Comments and changes

No comments added for this issue yet.

Add comment / attachment

Show/hide preview

Verification: Please write the text from the image in the box (letters only)

captcha

Is that you, Humanoid? Is this me?