<html><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Hi,<div><br></div><div>I'm working with an undergrad student doing Orion data analysis using the most recent stable version of yt (he attended the recent yt workshop - yea!). However, he is encountering this error with his yt installation:</div><div><span class="Apple-style-span" style="font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; "><pre><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">File "slicePJ.py", line 18, in <module>
c = pf.h.find_max("Density") #this involves finding the max density
File "/usr/local/yt/yt-x86_64/src/yt-hg/yt/data_objects/static_output.py", line 172, in hierarchy
self, data_style=self.data_style)
File "/usr/local/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py", line 131, in __init__
self._setup_field_list()
File "/usr/local/yt/yt-x86_64/src/yt-hg/yt/frontends/orion/data_structures.py", line 365, in _setup_field_list
for field in self.field_info:</span></font></pre><pre><span class="Apple-style-span" style="font-family: 'courier new', courier, monaco, monospace, sans-serif; white-space: normal; "><font class="Apple-style-span" size="3"><span class="Apple-style-span" style="font-size: 12px;">AttributeError: 'OrionHierarchy' object has no attribute 'field_info'</span></font></span></pre></span></div><div>I can't reproduce this error on any of my own yt installations with the data (although my versions are a bit older). His script (below) is pretty straight forward and successfully loads the data first. Any ideas?</div><div><br></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">from yt.mods import *<br>from yt.funcs import *<br>import particles<br>import fields</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">"""<br>The next section is taken from the yt cookbook as a basic test to make sure I can get everything to work</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">"""</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">fn = "p1a09025"<br>pf = load(fn)</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">pf = load(fn) # load data<br>pc = PlotCollection(pf) # defaults to center at most dense point<br>pc.add_slice("Density", 0) # 0 = x-axis<br>pc.add_slice("Density", 1) # 1 = y-axis<br>pc.add_slice("Density", 2) # 2 = z-axis<br>#pc.set_width(1.5, 'mpc') # change width of all plots in pc #I have commented this line from the cookbook version<br>pc.save(fn) # save all plots</div></div><div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">"""<br>Below are commented versions of older efforts, working off from what I did at the yt workshop</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">"""</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">#dd = pf.h.all_data()</div><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; font-family: 'courier new', courier, monaco, monospace, sans-serif; font-size: 16px; ">#c = pf.h.find_max("Density") #this involves finding the max density<br>#pc = PlotCollection(pf) #recentering # commenented out the( ,c ) in the argument to test if<br>#p1 = pc.add_slice("Temperature", 2)<br>#p2 = pc.add_projection("Density", 2, "Density")<br>#pc.set_width(0.1, "unitary")<br>#pc.set_cmap("cool")</div></div><div><div apple-content-edited="true"><span class="Apple-style-span" style="border-collapse: separate; color: rgb(0, 0, 0); font-family: Helvetica; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-align: auto; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div><div><div><br></div></div>Thanks!</div><div>Stella</div><br></div></span><br class="Apple-interchange-newline"> </div><br></div></body></html>