Hi All,
I'm forming 2D binned profiles and writing them to file using yt
2.6, and noticed two different CellMassMsun's are stored in the file:
CellMassMsun and CellMassMsun_std. These two values tend to differ by over
an order of magnitude (from a glance, it seems the latter is consistently
larger). Any idea what's up here?
cheers,
Munier
--
Munier A. Salem // 845.489.6450
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi All,
When I access some derived fields (like StarFormationRate) in a galaxy
simulation, the units are dimensionless:
In [*4*]: ad = ds.all_data()
In [*5*]: ad[("PartType0","StarFormationRate")]
Out[*5*]:
YTArray([ 0.00000000e+00, 0.00000000e+00, 8.29740111e-06, ...,
0.00000000e+00, 0.00000000e+00, 0.00000000e+00])
(dimensionless)
I'd like to assign the units to this field. I figure I could define a
field with the right units, but it seems like it might be possible to just
assign units to the ds StarFormationRate field as is. Is this possible, or
should I just define a new field?
thanks,
desika
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi everyone,
I want to write a new field based on the neighbour cells like this:
vx = data[ftype, "velocity_x"][sl_right,sl_center,sl_center]
but I got " global name 'ftype' is not defined". I suppose that I have the
same problem with sl_left, sl_right , sl_center.
Thanks,
Jose
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi there--
I'm doing something wrong with clumps in yt3, and can't quite figure out
what I"m doing. When I make some clumps, the field 'density' shows up, but
no other fields seem to be well defined. Is this a familiar error to
anyone? What I'm doing is the following:
I make some clumps from a sphere, similar to what's in the docs (details at
the end of the email), and when I do
>>> leaf_clumps[n]['density']
I get something sensical. But if I do
>>> leaf_clumps[n]['cell_mass']
YTArray([], dtype=float64) g
I get this empty array.
If I instead try quantities.total_mass(), I get an odd error.
>>> leaf_clumps[22].quantities.total_mass()
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/derived_quantities.py",
line 193, in __call__
rv = super(TotalMass, self).__call__(fields)
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/derived_quantities.py",
line 160, in __call__
rv = super(TotalQuantity, self).__call__(fields)
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/derived_quantities.py",
line 56, in __call__
sto.result = self.process_chunk(ds, *args, **kwargs)
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/derived_quantities.py",
line 166, in process_chunk
for field in fields]
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/data_containers.py",
line 248, in __getitem__
self.get_data(f)
File
"/home/dcollins4096/local-yt-2014-08-27/src/yt-hg/yt/data_objects/selection_data_containers.py",
line 749, in get_data
raise YTMixedCutRegion(self.conditionals, field)
yt.utilities.exceptions.YTMixedCutRegion: Can't mix particle/discrete and
fluid/mesh conditions or
quantities. Field: ('all', 'particle_mass') and Conditions
specified:
obj['contours_8d0408a91fc34e2bbe9eb838d48de46e'] == 1
I build the clumps in the following manner. I don't have any validators by
design. Plotting the clumps with annotate_clumps(leaf_clumps) gives
reasonable results.
ds = yt.load(setname)
loc = ds.arr([ 0.03613281, 0.79589844, 0.03027344], 'code_length')
width = (0.05,'code_length')
sphere = ds.sphere(loc,width)
master_clump = Clump(sphere,"density")
use_particles=False, use_thermal_energy=False)
c_min = sphere["gas", "density"].min()
c_max = sphere["gas", "density"].max()
step = 2.0
find_clumps(master_clump, c_min, c_max, step)
leaf_clumps = get_lowest_clumps(master_clump)
Thanks a ton!
d.
--
-- Sent from a computer.
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi Kyriaki,
On Wed, Dec 17, 2014 at 7:00 PM, Dionysopoulou K. <
K.Dionysopoulou(a)soton.ac.uk> wrote:
>
> Hi Nathan and Jill,
>
> thanks for your very quick response. I will wait for the modifications to
> the export_obj function then.
> On another matter, how easy would it be to pass volume renderings to
> sketchfab instead of the isosurfaces? What I have in mind is something
> similar to this
>
> http://vimeo.com/104706172
>
> but for uniform_grid data. This would be very useful when producing movies
> of volume renderings.
>
>
As far as I know, sketchfab only renders surfaces, while volume renderings
would be a different rendering process in WebGL. It would be cool if they
started though!
> Thanks once again,
>
> Kyriaki Dionysopoulou
> =======================================================
> Mathematical Sciences
> University of Southampton
> Southampton, SO17 1BJ, UK
> K.Dionysopoulou(a)soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk>
>
> On 17 Dec 2014, at 23:30, Nathan Goldbaum <nathan12343(a)gmail.com<mailto:
> nathan12343(a)gmail.com>> wrote:
>
>
>
> On Wed Dec 17 2014 at 3:29:49 PM Naiman, Jill <jill.naiman(a)cfa.harvard.edu
> <mailto:jill.naiman@cfa.harvard.edu>> wrote:
> Hi Kyriaki,
>
> The export_obj needs to be updated, I've got a fixed copy I've been
> meaning to push to the repository, so maybe I should just get on that!
>
> Other folks - let me know if someone should first file a bug report, or if
> I should just fix & push.
>
> If you will get the fix out in the next couple of days, there's probably
> no need to file an issue. If it will take a while, it's nice to have a bug
> that we can reference if people ask questions about it in the future.
>
>
> Cheers,
> -Jill
>
> On Wed, Dec 17, 2014 at 6:01 PM, Dionysopoulou K. <
> K.Dionysopoulou(a)soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk>> wrote:
> Dear all,
>
> I am trying to use the yt export_obj function in order to be able to use
> yt in conjunction with Blender3D. I am very new to yt, so I tried the
> simple example you have here:
>
> http://yt-project.org/doc/visualizing/sketchfab.html
>
> and here
>
> http://blog.yt-project.org<http://blog.yt-project.org/>
>
> My problem is that even when using the data suggested in the webpage the
> code snippet provided fails to produce the mtl and obj files. After taking
> a quick look at the code I noticed the initial problem was caused by
> inconsistent units for the emissivity (maybe a typo in the docs?). I also
> changed ‘mpc’ to ‘Mpc’ as yt was complaining that the domain was too small.
> Even after these minor changes the export_obj function does not seem to
> work for me. The error messages are attached in the python notebook below
> (the notebook is basically just a copy and paste from the provided ones in
> the websites above).
>
> The similar (but different) export_sketchfab function seems to work fine
> for the same data. I cannot really figure out what goes wrong with the
> export_obj function and any help would be very much appreciated.
>
>
>
> Thanks in advance,
>
>
> Kyriaki Dionysopoulou
> =======================================================
> Mathematical Sciences
> University of Southampton
> Southampton, SO17 1BJ, UK
> K.Dionysopoulou(a)soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk><mailto:
> K.Dionysopoulou(a)soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk>>
>
>
> _______________________________________________
> yt-users mailing list
> yt-users(a)lists.spacepope.org<mailto:yt-users@lists.spacepope.org>
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> _______________________________________________
> yt-users mailing list
> yt-users(a)lists.spacepope.org<mailto:yt-users@lists.spacepope.org>
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
> _______________________________________________
> yt-users mailing list
> yt-users(a)lists.spacepope.org
> http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org
>
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Dear all,
I am trying to use the yt export_obj function in order to be able to use yt in conjunction with Blender3D. I am very new to yt, so I tried the simple example you have here:
http://yt-project.org/doc/visualizing/sketchfab.html
and here
http://blog.yt-project.org
My problem is that even when using the data suggested in the webpage the code snippet provided fails to produce the mtl and obj files. After taking a quick look at the code I noticed the initial problem was caused by inconsistent units for the emissivity (maybe a typo in the docs?). I also changed ‘mpc’ to ‘Mpc’ as yt was complaining that the domain was too small. Even after these minor changes the export_obj function does not seem to work for me. The error messages are attached in the python notebook below (the notebook is basically just a copy and paste from the provided ones in the websites above).
The similar (but different) export_sketchfab function seems to work fine for the same data. I cannot really figure out what goes wrong with the export_obj function and any help would be very much appreciated.
Thanks in advance,
Kyriaki Dionysopoulou
=======================================================
Mathematical Sciences
University of Southampton
Southampton, SO17 1BJ, UK
K.Dionysopoulou(a)soton.ac.uk<mailto:K.Dionysopoulou@soton.ac.uk>
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hello everyone,
I’ve set up some nightly binary builds of yt that are installable via
Anaconda Python:
https://binstar.org/jzuhone/yt/files
These build a binary package of yt from whatever the tip of the main
repository is every night. I’m still working the kinks out of
scheduling the builds, but there should be very recent versions of yt
up there for Linux, Windows, and Mac OS X (all 64-bit only).
I’d like folks to test these out at their leisure to see how they hold
up under different platforms. If you don’t want to mess up your
current Anaconda/yt setup, you can test it out in a separate Anaconda
environment on the same machine. To set up a new conda environment,
start with Step 1 below. If you’re ok with installing it in the
default environment, you can skip to Step 2.
Step 1:
You can setup a new Anaconda Python environment, completely separate
from the default one, using “conda create”, e.g.:
conda create -n test_yt python=2.7 numpy=1.8
which will set up a completely new conda environment which can be
activated at will. You should see some instructions like this:
#
# To activate this environment, use:
# $ source activate test_yt
#
# To deactivate this environment, use:
# $ source deactivate
#
After you activate this environment, the prompt will indicate that you
are in this new environment (in this example “yt_test”), and anything
you do will NOT touch your default install at all.
Step 2:
Install the yt nightly using:
conda install -c https://conda.binstar.org/jzuhone yt==dev
And you’re done! Let me know what happens!
Best,
John Z
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi, Everybody-
I have a periodic data set and want to run the annotate_particles callback
centered on the max. It looks like the particles are cut off for a chunk
of my region, as though the weren't rolled around the periodic boundary.
There used to be a periodic_region that I think took care of this, but I
don't see it any more. Is there an easy work around for this?
I apologize if this came up already, I feel like I saw this question go by
recently, but couldn't find it. (I might have even asked it. I'm a little
dumb these days)
d.
--
-- Sent from a computer.
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org

Hi, Everybody-
I have some old code in which I pulled particle ids from grid objects, and
I'm porting it to yt3.0.
My old code used a "cut mask" defined like the following:
for grid in data._grids:
cut_mask= data._get_cut_mask(grid)
I see that grids is now handled through chunks, is there a modern
equivalent of the cut_mask? Or, is there a new-and-improved method to get
particle ids from complex objects?
d.
--
-- Sent from a computer.
_______________________________________________
yt-users mailing list
yt-users(a)lists.spacepope.org
http://lists.spacepope.org/listinfo.cgi/yt-users-spacepope.org