<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Hi all,<br>
    <br>
    I am running a modified TestOrbit problem. If I try to look at the
    hierarchy of the first dump, everything is working just fine:<br>
    <br>
    <address>---------------------------------------------------------------------------------------------------------------------</address>
    <address>In [32]: filen1 = 'DD0000/data0000'</address>
    <address><br>
      In [33]: pf1 = load(filen1)</address>
    <address>yt : [INFO     ] 2011-08-29 13:26:58,698 Parameters:
      current_time              = 0</address>
    <address>yt : [INFO     ] 2011-08-29 13:26:58,698 Parameters:
      domain_dimensions         = [32 32 32]</address>
    <address>yt : [INFO     ] 2011-08-29 13:26:58,698 Parameters:
      domain_left_edge          = [0 0 0]</address>
    <address>yt : [INFO     ] 2011-08-29 13:26:58,698 Parameters:
      domain_right_edge         = [1 1 1]</address>
    <address>yt : [INFO     ] 2011-08-29 13:26:58,698 Parameters:
      cosmological_simulation   = 0.0</address>
    <address><br>
      In [34]: pf1.h.print_stats()</address>
    <address>level   # grids     # cells</address>
    <address>---------------------------</address>
    <address>  0          1        32768</address>
    <address>----------------------------</address>
    <address>             1        32768</address>
    <address><br>
    </address>
    <address>t = 0.00000000e+00 = 0.00000000e+00 s = 0.00000000e+00
      years</address>
    <address><br>
      Smallest Cell:</address>
    <address>        Width: 1.013e-26 mpc</address>
    <address>blablabla....</address>
    <address>
---------------------------------------------------------------------------------------------------------------------</address>
    <br>
    <br>
    <br>
    <br>
    However, if I try to do the same for a later dump:<br>
    <br>
    <address>---------------------------------------------------------------------------------------------------------------------</address>
    <address>In [40]: filen1 = 'DD0001/data0001'</address>
    <address><br>
      In [41]: pf1 = load(filen1)</address>
    <address>yt : [INFO     ] 2011-08-29 13:29:56,004 Parameters:
      current_time              = 0.0001000089999</address>
    <address>yt : [INFO     ] 2011-08-29 13:29:56,004 Parameters:
      domain_dimensions         = [32 32 32]</address>
    <address>yt : [INFO     ] 2011-08-29 13:29:56,004 Parameters:
      domain_left_edge          = [0 0 0]</address>
    <address>yt : [INFO     ] 2011-08-29 13:29:56,004 Parameters:
      domain_right_edge         = [1 1 1]</address>
    <address>yt : [INFO     ] 2011-08-29 13:29:56,004 Parameters:
      cosmological_simulation   = 0.0</address>
    <address><br>
      In [42]: pf1.h.print_stats()</address>
    <address>---------------------------------------------------------------------------</address>
    <address>TypeError                                 Traceback (most
      recent call last)</address>
    <address><br>
      /rpod2/jcpassy/yt-x86_64/src/yt-hg/scripts/iyt in <module>()</address>
    <address>----> 1 </address>
    <address>      2 </address>
    <address>      3 </address>
    <address>      4 </address>
    <address>      5 </address>
    <address><br>
      /rpod2/jcpassy/yt-x86_64/src/yt-hg/yt/data_objects/static_output.py
      in hierarchy(self)</address>
    <address>    167                 raise RuntimeError("You should not
      instantiate StaticOutput.")</address>
    <address>    168             self._instantiated_hierarchy =
      self._hierarchy_class(</address>
    <address>--> 169                 self,
      data_style=self.data_style)</address>
    <address>    170         return self._instantiated_hierarchy</address>
    <address>    171     h = hierarchy  # alias</address>
    <address><br>
      /rpod2/jcpassy/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py
      in __init__(self, pf, data_style)</address>
    <address>    160             self.float_type = 'float64'</address>
    <address>    161 </address>
    <address>--> 162         AMRHierarchy.__init__(self, pf,
      data_style)</address>
    <address>    163         # sync it back</address>
    <address><br>
          164         self.parameter_file.data_style = self.data_style</address>
    <address><br>
      /rpod2/jcpassy/yt-x86_64/src/yt-hg/yt/data_objects/hierarchy.py in
      __init__(self, pf, data_style)</address>
    <address>     58 </address>
    <address>     59         mylog.debug("Counting grids.")</address>
    <address>---> 60         self._count_grids()</address>
    <address>     61 </address>
    <address>     62         # Must be defined in subclass</address>
    <address><br>
    </address>
    <address>/rpod2/jcpassy/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py
      in _count_grids(self)</address>
    <address>    182                 self.num_grids = test_grid_id =
      int(line.split("=")[-1])</address>
    <address>    183                 break</address>
    <address>--> 184        
      self._guess_data_style(self.pf.dimensionality, test_grid,
      test_grid_id)</address>
    <address>    185 </address>
    <address>    186     def _guess_data_style(self, rank, test_grid,
      test_grid_id):</address>
    <address><br>
      /rpod2/jcpassy/yt-x86_64/src/yt-hg/yt/frontends/enzo/data_structures.py
      in _guess_data_style(self, rank, test_grid, test_grid_id)</address>
    <address>    185 </address>
    <address>    186     def _guess_data_style(self, rank, test_grid,
      test_grid_id):</address>
    <address>--> 187         if test_grid[0] != os.path.sep:</address>
    <address>    188             test_grid =
      os.path.join(self.directory, test_grid)</address>
    <address>    189         if not os.path.exists(test_grid):</address>
    <address><br>
      TypeError: 'NoneType' object is not subscriptable</address>
    <address>---------------------------------------------------------------------------------------------------------------------</address>
    <br>
    <br>
    Could someone help me to fix this ?<br>
    <br>
    Thanks a lot,<br>
    <br>
    <br>
    JC<br>
  </body>
</html>