[yt-svn] commit/yt: ngoldbaum: Replace 'mpc' with 'Mpc' in a number of places
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Fri May 29 05:58:37 PDT 2015
1 new commit in yt:
https://bitbucket.org/yt_analysis/yt/commits/5519ddabd1cd/
Changeset: 5519ddabd1cd
Branch: yt
User: ngoldbaum
Date: 2015-05-28 23:43:20+00:00
Summary: Replace 'mpc' with 'Mpc' in a number of places
Affected #: 5 files
diff -r 8ad62b62439013a33e3a2b568a5a26b567e93f54 -r 5519ddabd1cd4c2294447469339ae869dab46c96 doc/source/analyzing/analysis_modules/halo_finders.rst
--- a/doc/source/analyzing/analysis_modules/halo_finders.rst
+++ b/doc/source/analyzing/analysis_modules/halo_finders.rst
@@ -116,7 +116,7 @@
the width of the smallest grid element in the simulation from the
last data snapshot (i.e. the one where time has evolved the
longest) in the time series:
- ``ds_last.index.get_smallest_dx() * ds_last['mpch']``.
+ ``ds_last.index.get_smallest_dx() * ds_last['Mpch']``.
* ``total_particles``, if supplied, this is a pre-calculated
total number of dark matter
particles present in the simulation. For example, this is useful
diff -r 8ad62b62439013a33e3a2b568a5a26b567e93f54 -r 5519ddabd1cd4c2294447469339ae869dab46c96 doc/source/visualizing/sketchfab.rst
--- a/doc/source/visualizing/sketchfab.rst
+++ b/doc/source/visualizing/sketchfab.rst
@@ -56,7 +56,7 @@
import yt
ds = yt.load("/data/workshop2012/IsolatedGalaxy/galaxy0030/galaxy0030")
- sphere = ds.sphere("max", (1.0, "mpc"))
+ sphere = ds.sphere("max", (1.0, "Mpc"))
surface = ds.surface(sphere, "density", 1e-27)
This object, ``surface``, can be queried for values on the surface. For
@@ -172,7 +172,7 @@
trans = [1.0, 0.5]
filename = './surfaces'
- sphere = ds.sphere("max", (1.0, "mpc"))
+ sphere = ds.sphere("max", (1.0, "Mpc"))
for i,r in enumerate(rho):
surf = ds.surface(sphere, 'density', r)
surf.export_obj(filename, transparency = trans[i], color_field='temperature', plot_index = i)
@@ -248,7 +248,7 @@
return (data['density']*data['density']*np.sqrt(data['temperature']))
add_field("emissivity", function=_Emissivity, units=r"g*K/cm**6")
- sphere = ds.sphere("max", (1.0, "mpc"))
+ sphere = ds.sphere("max", (1.0, "Mpc"))
for i,r in enumerate(rho):
surf = ds.surface(sphere, 'density', r)
surf.export_obj(filename, transparency = trans[i],
diff -r 8ad62b62439013a33e3a2b568a5a26b567e93f54 -r 5519ddabd1cd4c2294447469339ae869dab46c96 yt/analysis_modules/halo_finding/halo_objects.py
--- a/yt/analysis_modules/halo_finding/halo_objects.py
+++ b/yt/analysis_modules/halo_finding/halo_objects.py
@@ -1232,9 +1232,8 @@
fglob = path.join(basedir, 'halos_%d.*.bin' % n)
files = glob.glob(fglob)
halos = self._get_halos_binary(files)
- #Jc = mass_sun_cgs/ ds['mpchcm'] * 1e5
Jc = 1.0
- length = 1.0 / ds['mpchcm']
+ length = 1.0 / ds['Mpchcm']
conv = dict(pos = np.array([length, length, length,
1, 1, 1]), # to unitary
r=1.0/ds['kpchcm'], # to unitary
diff -r 8ad62b62439013a33e3a2b568a5a26b567e93f54 -r 5519ddabd1cd4c2294447469339ae869dab46c96 yt/data_objects/selection_data_containers.py
--- a/yt/data_objects/selection_data_containers.py
+++ b/yt/data_objects/selection_data_containers.py
@@ -729,7 +729,7 @@
>>> import yt
>>> ds = yt.load("RedshiftOutput0005")
- >>> sp = ds.sphere("max", (1.0, 'mpc'))
+ >>> sp = ds.sphere("max", (1.0, 'Mpc'))
>>> cr = ds.cut_region(sp, ["obj['temperature'] < 1e3"])
"""
_type_name = "cut_region"
diff -r 8ad62b62439013a33e3a2b568a5a26b567e93f54 -r 5519ddabd1cd4c2294447469339ae869dab46c96 yt/fields/field_aliases.py
--- a/yt/fields/field_aliases.py
+++ b/yt/fields/field_aliases.py
@@ -141,12 +141,12 @@
("CellMassCode", "code_mass"),
("TotalMassMsun", "msun"),
("CellVolumeCode", "code_length"),
- ("CellVolumeMpc", "mpc**3"),
- ("ParticleSpecificAngularMomentumXKMSMPC","km/s/mpc"),
- ("ParticleSpecificAngularMomentumYKMSMPC","km/s/mpc"),
- ("ParticleSpecificAngularMomentumZKMSMPC","km/s/mpc"),
- ("RadiusMpc", "mpc"),
- ("ParticleRadiusMpc", "mpc"),
+ ("CellVolumeMpc", "Mpc**3"),
+ ("ParticleSpecificAngularMomentumXKMSMPC","km/s/Mpc"),
+ ("ParticleSpecificAngularMomentumYKMSMPC","km/s/Mpc"),
+ ("ParticleSpecificAngularMomentumZKMSMPC","km/s/Mpc"),
+ ("RadiusMpc", "Mpc"),
+ ("ParticleRadiusMpc", "Mpc"),
("ParticleRadiuskpc", "kpc"),
("Radiuskpc", "kpc"),
("ParticleRadiuskpch", "kpc"),
Repository URL: https://bitbucket.org/yt_analysis/yt/
--
This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
More information about the yt-svn
mailing list