[yt-users] error on hierarchy access.

david collins antpuncher at gmail.com
Tue Nov 20 20:51:42 PST 2012


Is this behavior familiar to anyone?  I've done this with a fresh
build and one from a few months ago.

The set was generated with the latest build of enzo.  With a set
generated from an earlier enzo build, I can read the set just fine.

Thanks!
d.

>>> from yt.mods import *
>>> pf = load('/Users/dccollins/Enzo/unstable/run/GravitySolver/GravityTest/./DD0000/data0000')
>>> pf.h
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/Users/dccollins/local2/src/yt-hg/yt/data_objects/static_output.py",
line 189, in hierarchy
    self, data_style=self.data_style)
  File "/Users/dccollins/local2/src/yt-hg/yt/frontends/enzo/data_structures.py",
line 218, in __init__
    AMRHierarchy.__init__(self, pf, data_style)
  File "/Users/dccollins/local2/src/yt-hg/yt/data_objects/hierarchy.py",
line 62, in __init__
    self._count_grids()
  File "/Users/dccollins/local2/src/yt-hg/yt/frontends/enzo/data_structures.py",
line 240, in _count_grids
    self._guess_data_style(self.pf.dimensionality, test_grid, test_grid_id)
  File "/Users/dccollins/local2/src/yt-hg/yt/frontends/enzo/data_structures.py",
line 243, in _guess_data_style
    if test_grid[0] != os.path.sep:
TypeError: 'NoneType' object is not subscriptable

-- 
Sent from my computer.



More information about the yt-users mailing list