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
File "slicePJ.py", line 18, in <module>
c = pf.h.find_max("Density") #this involves finding the max density
static_output.py", line 172, in hierarchy
data_structures.py", line 131, in __init__
data_structures.py", line 365, in _setup_field_list
for field in self.field_info:
AttributeError: 'OrionHierarchy' object has no attribute 'field_info'
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
from yt.mods import *
from yt.funcs import *
The next section is taken from the yt cookbook as a basic test to make
sure I can get everything to work
fn = "p1a09025"
pf = load(fn)
pf = load(fn) # load data
pc = PlotCollection(pf) # defaults to center at most dense point
pc.add_slice("Density", 0) # 0 = x-axis
pc.add_slice("Density", 1) # 1 = y-axis
pc.add_slice("Density", 2) # 2 = z-axis
#pc.set_width(1.5, 'mpc') # change width of all plots in pc #I have
commented this line from the cookbook version
pc.save(fn) # save all plots
Below are commented versions of older efforts, working off from what I
did at the yt workshop
#dd = pf.h.all_data()
#c = pf.h.find_max("Density") #this involves finding the max density
#pc = PlotCollection(pf) #recentering # commenented out the( ,c ) in
the argument to test if
#p1 = pc.add_slice("Temperature", 2)
#p2 = pc.add_projection("Density", 2, "Density")
Just a reminder: feature requests can (and *should*) be submitted to
the BitBucket issue tracker here:
This will help yt-dev track where there are deficiencies, things that
can be corrected, and places for improvement -- even big, gigantic
long-reaching features. :)
I'm trying to use yt to calculate the spin parameter of a halo generated by Enzo. I have enzo writing out the potential using the -g flag, but when yt reads in the field, it isn't able to figure out the units or recognize it as a known field. Also, yt is keeping the potential data in code units, rather than converting to CGS. When I make a plot of the potential, the plot says that the units are unknown.
When I load the dataset into yt, the relavant output is
yt : [INFO ] 2012-03-01 17:10:20,349 Adding unknown field PotentialField to list of fields
I discussed this probelm with Brian O'Shea and Britton Smith. Not sure if anyone else has run into this issue.
-- Greg Meece
I'm running into some weird issues when I try to make a time series volume rendering movie using parallel_objects.
The script I'm running is pasted here: http://paste.yt-project.org/show/2206/
And the resulting movie is located here: http://ucolick.org/~goldbaum/files/volume.avi
The movie is stitched together using ffmpeg but i've confirmed that the artifacts are present in the individual frames. This is not due to my use of the enhance script since the artifacts appear in the raw frames and in fact the movie was stitched together using the raw frames. I don't see any artifacts when I volume render individual frames in serial. I'm doing one processor per file parallelism.
Thanks for your help with this - I know there's a cool looking movie buried in there somewhere.
Astronomy & Astrophysics, UCSC
The yt/dev and yt/dev-local modules on Kraken are giving errors when trying
to do 'from yt.mods import *'. Just doing that give the following error:
I get the exact same thing with both of those two modules.