[yt-users] error on hierarchy access.

Matthew Turk matthewturk at gmail.com
Wed Nov 21 03:14:58 PST 2012


Hi David,

(Is this a gravity test simulation?)  What's going on here is there
are, I think, no grids.  Sam tracked this down the other day and we
decided that since it's a very, very weird case, not to push a fix.
If it's gravity test, you might (unfortunately) have to manually
access it.

-Matt

On Tue, Nov 20, 2012 at 11:51 PM, david collins <antpuncher at gmail.com> wrote:
> 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.
> _______________________________________________
> yt-users mailing list
> yt-users at lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org



More information about the yt-users mailing list