Hi Miguel,<br><br>It looks to me like the halo finder is failing because it cannot find any particles.  If you do:<br>print pf.get_parameter('NumberOfParticles')<br>what does is show?<br><br>Britton<br><br><div class="gmail_quote">
2011/7/22 Miguel Angel González <span dir="ltr"><<a href="mailto:miguelglezbol@gmail.com">miguelglezbol@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi YT user, <br><br>I'm new using YT, and I'm already having problems when I've tried<br>to use the HOP, when I write the commands in Python, this comes out:<br>>>> from yt.mods import *<br>>>> from yt.analysis_modules.halo_finding.api import *<br>

>>> pf = load("data0004")<br>>>> halo_list = HaloFinder(pf)<br>yt         INFO       2011-07-21 19:38:42,838 Getting the binary hierarchy<br>yt         INFO       2011-07-21 19:38:42,846 Finished with binary hierarchy reading<br>

yt         INFO       2011-07-21 19:38:42,849 Adding Phi to list of fields<br>Warning: invalid value encountered in sqrt<br>Warning: invalid value encountered in sqrt<br>yt         WARNING    2011-07-21 19:38:43,009 No particle_type, no creation_time, so not distinguishing.<br>

yt         INFO       2011-07-21 19:38:43,013 Getting ParticleMassMsun using ParticleIO<br>Traceback (most recent call last):<br>  File "<stdin>", line 1, in <module><br>  File "/usr/local/yt-unknown/src/yt-hg/yt/analysis_modules/halo_finding/halo_objects.py", line 1821, in __init__<br>

    self._mpi_allsum((self._data_source["ParticleMassMsun"][select]).sum(dtype='float64'))<br>  File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 279, in __getitem__<br>

    self.get_data(key)<br>  File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/data_containers.py", line 1918, in get_data<br>    self.particles.get_data(field)<br>  File "/usr/local/yt-unknown/src/yt-hg/yt/data_objects/particle_io.py", line 92, in get_data<br>

    conv_factors)<br>  File "/usr/local/yt-unknown/src/yt-hg/yt/frontends/enzo/io.py", line 154, in _read_particles<br>    filenames, ids, conv_factors = zip(*sorted(zip(filenames, ids, conv_factors)))<br>ValueError: need more than 0 values to unpack<br>

<br>Does anyone know how to fix this trouble? <br><br>Thanks in advance, Miguel Gonzalez.
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br>