<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p>dear all</p>
<p>i am using yt for enzo. my script reads:</p>
<p><br>
</p>
<p></p>
<div>import yt<br>
<br>
# Load the dataset.<br>
ds = yt.load("~/enzo/run/CosmologySimulation/AMRCosmology/DD0001/DD0001")<br>
<br>
# Create a 1 Mpc radius sphere, centered on the max density.<br>
sp = ds.sphere("max", (0.1, "Mpc"))<br>
<br>
# Use the total_quantity derived quantity to sum up the<br>
# values of the cell_mass and particle_mass fields<br>
# within the sphere.<br>
baryon_mass, particle_mass = sp.quantities.total_quantity(["cell_mass", "particle_mass"])<br>
<br>
print("Total mass in sphere is %0.3e Msun (gas = %0.3e Msun, particles = %0.3e Msun)" % \<br>
      ((baryon_mass + particle_mass).in_units('Msun'), \<br>
       baryon_mass.in_units('Msun'), particle_mass.in_units('Msun')))</div>
<p></p>
<p>-----------<br>
</p>
<p>the error i am getting is:</p>
<p></p>
<div>~/enzo/run/CosmologySimulation/AMRCosmology$ python trial.py <br>
Traceback (most recent call last):<br>
  File "trial.py", line 4, in <module><br>
    ds = yt.load("~/enzo/run/CosmologySimulation/AMRCosmology/DD0001/DD0001")<br>
  File "/usr/local/lib/python2.7/dist-packages/yt/convenience.py", line 79, in load<br>
    if c._is_valid(*args, **kwargs): candidates.append(n)<br>
  File "/usr/local/lib/python2.7/dist-packages/yt/frontends/flash/data_structures.py", line 493, in _is_valid<br>
    fileh = HDF5FileHandler(args[0])<br>
  File "/usr/local/lib/python2.7/dist-packages/yt/utilities/file_handler.py", line 22, in __init__<br>
    self.handle = h5py.File(filename, 'r')<br>
  File "/usr/local/lib/python2.7/dist-packages/yt/utilities/on_demand_imports.py", line 31, in __call__<br>
    raise self.error<br>
ImportError: This functionality requires the h5py package to be installed.<br>
</div>
<p></p>
<p>----------------<br>
</p>
<p><br>
</p>
<p>is my script outdated, there is something wrong with my installation or deficiencies in the python libraries?</p>
<p><br>
</p>
<p>thank you</p>
<p>cynthia<br>
</p>
</div>
</body>
</html>