Hi yt users,
I wanted to know if it is possible somehow to make plots (projections and slices) of a subregion of the domain, e.g. I define a sphere like :
sph= pf.h.sphere(center=[0,0,0], radius=(100,'pc’))
Now I want to plot the projection of the density of that region in the x axis:
slc = SlicePlot(sph, 'x', 'dens')
But then I get the following error:
AttributeError: 'AMRSphere' object has no attribute 'domain_width'
thanks for your help,
Juan Camilo Ibañez Mejia
Department of Astrophysics
American Museum of Natural History
I am totally baffled by the camera right now. I have a galaxy that is
being stripped by an oncoming wind, and I would like to be able to see both
the disk and the tail. I am attaching three different ways (out of what
think has been a million permutations) I have tried to get a nice volume
rendering, and none do a good job.
In particular, when I try to choose specific values for tf layers, by
adding a single layer I get a TOTALLY different rendering! (v1 and v2).
Can anyone explain why I no longer see the disk when I add that extra layer?
Also, when I choose to use tf.add_layers, can I get yt to print out where
it has put the layers?
I'm trying to access field value in a given point in ARTIO file (sample
data file: sizmbhloz-clref04SNth-rs9_a0.9011
). The function '
' seems to be not working. May be I'm using it wrong?
Here is the code:
from yt.mods import *
And the error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
line 84, in __getattr__
The memory usage in yt is filling up the machine for a time series with
~100 outputs. It seems like the data from previous datasets isn't being
cleared from memory, despite calling "del pf" and "gc.collect()". I've
tried various suggestions made previously in the mailing list to no
effect. I'm using the Ramses frontend with the script attached. Any ideas?
When initial condition is uniform, it has zero dynamic range. Although it
has no dynamic range, sometimes I need to plot it with log scale colorbar
to make a movie with the same colorbar for later times. But, yt forced
switch to linear colorbar. How can I make yt not to do that.
I just wanted to introduce Yanfei Jiang, a postdoc at the CfA who using
Athena to do global radiation MHD simulations of black hole accretion
disks. He's really keen to start using yt, but he wants to know what the
status of doing volume rendering in cylindrical coordinates. Sam, I know
you've been thinking about this.
I'm also quite interested in doing volume rendering of cylindrical
Hi yt users,
Recently, I try to install the yt on my mac desktop that uses OS X 10.8.4.
While installing yt, I face on strange error and fail to insall.
line 74, in _load
mod = _hgextimport(_import, head, globals, locals, None, level)
line 43, in _hgextimport
return importfunc(name, globals, *args)
2): Symbol not found: __cg_png_create_info_struct
Expected in: /Users/junhwan2/common/lib/libPng.dylib
/Users/junhwan2/common/bin/python2.7: can't open file
'/Users/junhwan2/common/src/yt-hg//distribute_setup.py': [Errno 2] No
such file or directory
As far as I know, yt script needs to make src/yt-hg directory and cp
Hence, I can not understand what this error for.
Can anyone tell me how it happens and how I can fix it?
FYI, I set DEST_DIR="/Users/junhwan2/common" in the script to install
yt in my home dir.
Thank you in advance,
I have a function that loads a pf from a Gadget data set, and then smooths
a few physical quantities (gas metallicity; mass; density) onto an octree,
and then returns them:
in an older version of yt (3.0) that I'm using: 7cf523a36d10 (yt-3.0)
this works, no problem. if I run yt-update, to get to: 4d1488b8fa47
this gives the following traceback copied below. Has something important
changed that should affect the way I use smoothing functions?
File "/Users/desika/Dropbox/powderday/particle_smooth_yt.py", line 41, in
saved["metallicity"] = ad["gas", "metallicity"]
line 214, in __getitem__
line 623, in get_data
line 640, in _generate_fields
fd = self._generate_field(field)
line 251, in _generate_field
tr = self._generate_fluid_field(field)
line 271, in _generate_fluid_field
rv = finfo(gen_obj)
File "/Users/desika/yt-x86_64/src/yt-hg/yt/fields/derived_field.py", line
178, in __call__
dd = self._function(self, data)
File "/Users/desika/yt-x86_64/src/yt-hg/yt/fields/fluid_fields.py", line
153, in _metallicity
tr = data[ftype, "metal_density"] / data[ftype, "density"]
line 207, in __getitem__
f = self._determine_fields([key])
line 455, in _determine_fields
finfo = self.pf._get_field_info(ftype, fname)
487, in _get_field_info
raise YTFieldNotFound((ftype, fname), self)
yt.utilities.exceptions.YTFieldNotFound: Could not find field '('gas',
'metal_density')' in snapshot_006.
This blog post  makes it look like if you have the latest hg
tip of yt you might be able to do slices of data in spherical
coordinates. Could someone explain how with a simple example since I
don't see any documentation? Thanks.
Joseph Smidt <josephsmidt(a)gmail.com>
P.O. Box 1663, Mail Stop B283
Los Alamos, NM 87545
I'm trying to install the latest stable yt version via the
install_script.sh on a Red Hat 6 based HPC. I'm getting a very confusing
error during the final steps of the installation, which can be seen here:
Basically, during the step where yt updates from the repo and then attempts
to install, it looks in a very odd place for the distribute python package.
I can't simply update that version, because I'm on an HPC, but I think the
problem is deeper than that. Its looking for it in a version of python that
I don't even have loaded in my environment, in a directory that isn't in my
PYTHONPATH. I've tried wiping out my python path prior to install as well,
but with the same results. From my understanding, yt shouldn't even be
trying to use the system version of python any way?
Any help would be much appreciated!