from yt.mods import * from yt.analysis_modules.halo_finding.api import * pf = load("data0004") halo_list = HaloFinder(pf) yt INFO 2011-07-21 19:38:42,838 Getting the binary hierarchy yt INFO 2011-07-21 19:38:42,846 Finished with binary hierarchy reading yt INFO 2011-07-21 19:38:42,849 Adding Phi to list of fields Warning: invalid value encountered in sqrt Warning: invalid value encountered in sqrt yt WARNING 2011-07-21 19:38:43,009 No particle_type, no creation_time, so not distinguishing. yt INFO 2011-07-21 19:38:43,013 Getting ParticleMassMsun using ParticleIO Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/yt-unknown/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py",
Hi YT user, I'm new using YT, and I'm already having problems when I've tried to use the HOP, when I write the commands in Python, this comes out: line 1821, in __init__ self._mpi_allsum((self._data_source["ParticleMassMsun"][select]).sum(dtype='float64')) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 279, in __getitem__ self.get_data(key) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 1918, in get_data self.particles.get_data(field) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/particle_io.py", line 92, in get_data conv_factors) File "/usr/local/yt-unknown/src/yt-hg/yt/frontends/enzo/io.py", line 154, in _read_particles filenames, ids, conv_factors = zip(*sorted(zip(filenames, ids, conv_factors))) ValueError: need more than 0 values to unpack Does anyone know how to fix this trouble? Thanks in advance, Miguel Gonzalez.
Hi Miguel,
It looks to me like the halo finder is failing because it cannot find any
particles. If you do:
print pf.get_parameter('NumberOfParticles')
what does is show?
Britton
2011/7/22 Miguel Angel González
Hi YT user,
from yt.mods import * from yt.analysis_modules.halo_finding.api import * pf = load("data0004") halo_list = HaloFinder(pf) yt INFO 2011-07-21 19:38:42,838 Getting the binary hierarchy yt INFO 2011-07-21 19:38:42,846 Finished with binary hierarchy reading yt INFO 2011-07-21 19:38:42,849 Adding Phi to list of fields Warning: invalid value encountered in sqrt Warning: invalid value encountered in sqrt yt WARNING 2011-07-21 19:38:43,009 No particle_type, no creation_time, so not distinguishing. yt INFO 2011-07-21 19:38:43,013 Getting ParticleMassMsun using ParticleIO Traceback (most recent call last): File "<stdin>", line 1, in <module> File "/usr/local/yt-unknown/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py",
I'm new using YT, and I'm already having problems when I've tried to use the HOP, when I write the commands in Python, this comes out: line 1821, in __init__
self._mpi_allsum((self._data_source["ParticleMassMsun"][select]).sum(dtype='float64')) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 279, in __getitem__ self.get_data(key) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 1918, in get_data self.particles.get_data(field) File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/particle_io.py", line 92, in get_data conv_factors) File "/usr/local/yt-unknown/src/yt-hg/yt/frontends/enzo/io.py", line 154, in _read_particles filenames, ids, conv_factors = zip(*sorted(zip(filenames, ids, conv_factors))) ValueError: need more than 0 values to unpack
Does anyone know how to fix this trouble?
Thanks in advance, Miguel Gonzalez. _______________________________________________ yt-users mailing list yt-users@lists.spacepope.org http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
participants (2)
-
Britton Smith
-
Miguel Angel González