[yt-users] Not able to read 2D BoxLib files

Mani Chandra mc0710 at gmail.com
Tue Jul 23 19:50:34 PDT 2013


Hi Everyone,

I'm trying to load a 2D BoxLib file into yt. It looks like it is using the
same code as the Orion frontend and it fails with the following error:

/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/data_objects/static_output.pyc
in hierarchy(self)
    191                 raise RuntimeError("You should not instantiate
StaticOutput.")
    192             self._instantiated_hierarchy = self._hierarchy_class(
--> 193                 self, data_style=self.data_style)
    194         return self._instantiated_hierarchy
    195     h = hierarchy  # alias

/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py
in __init__(self, pf, data_style)
    119         self.data_style = data_style
    120
--> 121
self.readGlobalHeader(header_filename,self.parameter_file.paranoid_read) #
also sets up the grid objects
    122         self.__cache_endianness(self.levels[-1].grids[-1])
    123         AMRHierarchy.__init__(self,pf, self.data_style)

/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py
in readGlobalHeader(self, filename, paranoid_read)
    194         self.dimension = int(self.__global_header_lines[counter])
    195         if self.dimension != 3:
*--> 196             raise RunTimeError("Orion must be in 3D to use yt.")*
    197         counter += 1
    198         self.Time = float(self.__global_header_lines[counter])

Has anyone managed to load 2D Orion files into yt?

Thanks,
Mani
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.spacepope.org/pipermail/yt-users-spacepope.org/attachments/20130723/5bc2f54e/attachment.htm>


More information about the yt-users mailing list