Hi Mani,<div><br></div><div>To my knowledge, no one has ever used yt with 2D Orion data. I'm not sure if any of the other BoxLib codes support 2D. I think the reason the Orion code is getting called is because yt can tell your dataset uses BoxLib, but not that it belongs to any of the other BoxLib-based codes (Nyx, Castro, or Maestro), so it falls back to Orion. </div>
<div><br></div><div>What simulation code generated this dataset? If it's not one of Nyx, Castro, Maestro, or Orion, then you'll probably need to write a new frontend for your data.</div><div><br></div><div>-Andrew Myers<br>
<br><div class="gmail_quote">On Tue, Jul 23, 2013 at 7:50 PM, Mani Chandra <span dir="ltr"><<a href="mailto:mc0710@gmail.com" target="_blank">mc0710@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Everyone,<div><br></div><div>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:</div><div><br>
</div><div><div>/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/data_objects/static_output.pyc in hierarchy(self)</div><div> 191 raise RuntimeError("You should not instantiate StaticOutput.")</div>
<div> 192 self._instantiated_hierarchy = self._hierarchy_class(</div><div>--> 193 self, data_style=self.data_style)</div><div> 194 return self._instantiated_hierarchy</div><div>
195 h = hierarchy # alias</div><div><br></div><div>/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py in __init__(self, pf, data_style)</div><div> 119 self.data_style = data_style</div>
<div> 120 </div><div>--> 121 self.readGlobalHeader(header_filename,self.parameter_file.paranoid_read) # also sets up the grid objects</div><div> 122 self.__cache_endianness(self.levels[-1].grids[-1])</div>
<div> 123 AMRHierarchy.__init__(self,pf, self.data_style)</div><div><br></div><div>/home/mc/Downloads/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py in readGlobalHeader(self, filename, paranoid_read)</div>
<div> 194 self.dimension = int(self.__global_header_lines[counter])</div><div> 195 if self.dimension != 3:</div><div><b>--> 196 raise RunTimeError("Orion must be in 3D to use yt.")</b></div>
<div> 197 counter += 1</div><div> 198 self.Time = float(self.__global_header_lines[counter])</div><div><br></div><div>Has anyone managed to load 2D Orion files into yt?</div><div><br></div>
<div>Thanks,</div><div>Mani</div></div></div>
<br>_______________________________________________<br>
yt-users mailing list<br>
<a href="mailto:yt-users@lists.spacepope.org">yt-users@lists.spacepope.org</a><br>
<a href="http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org" target="_blank">http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org</a><br>
<br></blockquote></div><br></div>