[yt-svn] commit/yt: 4 new changesets
commits-noreply at bitbucket.org
commits-noreply at bitbucket.org
Tue Jul 16 09:40:26 PDT 2013
4 new commits in yt:
https://bitbucket.org/yt_analysis/yt/commits/b223a97c5b59/
Changeset: b223a97c5b59
Branch: yt
User: ngoldbaum
Date: 2013-07-10 06:15:06
Summary: Updating physical constants to reflect 2010 CODATA data.
Affected #: 1 file
diff -r 0f59ef0d7dc696a4c8fdab557eb544ca87942b6c -r b223a97c5b598ea841b0e25ad538a42bd78d2ad4 yt/utilities/physical_constants.py
--- a/yt/utilities/physical_constants.py
+++ b/yt/utilities/physical_constants.py
@@ -1,15 +1,16 @@
#
# Physical Constants and Units Conversion Factors
#
-# Values for these constants are drawn from IAU and IUPAC data
-# unless otherwise noted:
+# Values for these constants, unless otherwise noted, are drawn from IAU,
+# IUPAC, and NIST data, whichever is newer.
# http://maia.usno.navy.mil/NSFA/IAU2009_consts.html
# http://goldbook.iupac.org/list_goldbook_phys_constants_defs.html
+# http://physics.nist.gov/cuu/Constants/index.html
# Masses
-mass_hydrogen_cgs = 1.674534e-24 # g
-mass_electron_cgs = 9.1093898e-28 # g
-amu_cgs = 1.6605402e-24 # g
+mass_electron_cgs = 9.109382-28 # g
+amu_cgs = 1.660538921e-24 # g
+mass_hydrogen_cgs = 1.007947*amu_cgs # g
mass_sun_cgs = 1.98841586e33 # g
# Velocities
speed_of_light_cgs = 2.99792458e10 # cm/s, exact
@@ -22,10 +23,10 @@
charge_proton_cgs = 4.8032056e-10 # esu = 1.602176487e-19 Coulombs
# Physical Constants
-boltzmann_constant_cgs = 1.3806504e-16 # erg K^-1
-gravitational_constant_cgs = 6.67428e-8 # cm^3 g^-1 s^-2
-planck_constant_cgs = 6.62606896e-27 # erg s
-stefan_boltzmann_constant_cgs = 5.67051e-5 # erg cm^-2 s^-1 K^-4
+boltzmann_constant_cgs = 1.3806488e-16 # erg K^-1
+gravitational_constant_cgs = 6.67384e-8 # cm^3 g^-1 s^-2
+planck_constant_cgs = 6.62606957e-27 # erg s
+stefan_boltzmann_constant_cgs = 5.670373e-5 # erg cm^-2 s^-1 K^-4
# The following value was calcualted assuming H = 100 km/s/Mpc.
# To get the correct value for your cosmological parameters,
# you'll need to multiply through by h^2
@@ -69,16 +70,17 @@
cm_per_pc = 1.0 / pc_per_cm
# time
+# "IAU Style Manual" by G.A. Wilkins, Comm. 5, in IAU Transactions XXB (1989)
sec_per_Gyr = 31.5576e15
sec_per_Myr = 31.5576e12
sec_per_kyr = 31.5576e9
-sec_per_year = 31.5576e6 # "IAU Style Manual" by G.A. Wilkins, Comm. 5, in IAU Transactions XXB (1989)
+sec_per_year = 31.5576e6
sec_per_day = 86400.0
sec_per_hr = 3600.0
day_per_year = 365.25
# temperature / energy
-erg_per_eV = 1.602176487e-12 # http://goldbook.iupac.org/E02014.html
+erg_per_eV = 1.602176562e-12
erg_per_keV = erg_per_eV * 1.0e3
K_per_keV = erg_per_keV / boltzmann_constant_cgs
keV_per_K = 1.0 / K_per_keV
https://bitbucket.org/yt_analysis/yt/commits/c709becee6a2/
Changeset: c709becee6a2
Branch: yt
User: ngoldbaum
Date: 2013-07-10 06:17:15
Summary: Deleting some useless whitespace.
Affected #: 1 file
diff -r b223a97c5b598ea841b0e25ad538a42bd78d2ad4 -r c709becee6a2723c85452f8ce7b49e3c2c4ba54f yt/utilities/physical_constants.py
--- a/yt/utilities/physical_constants.py
+++ b/yt/utilities/physical_constants.py
@@ -74,7 +74,7 @@
sec_per_Gyr = 31.5576e15
sec_per_Myr = 31.5576e12
sec_per_kyr = 31.5576e9
-sec_per_year = 31.5576e6
+sec_per_year = 31.5576e6
sec_per_day = 86400.0
sec_per_hr = 3600.0
day_per_year = 365.25
https://bitbucket.org/yt_analysis/yt/commits/f59d39a2ef53/
Changeset: f59d39a2ef53
Branch: yt
User: ngoldbaum
Date: 2013-07-16 06:32:01
Summary: Merging with development tip.
Affected #: 1 file
diff -r 2303e938a22ace1beb284d56b4ab719472cabcb5 -r f59d39a2ef5320dd6cfa72c21697ba3d18b8cf3e yt/utilities/physical_constants.py
--- a/yt/utilities/physical_constants.py
+++ b/yt/utilities/physical_constants.py
@@ -1,15 +1,16 @@
#
# Physical Constants and Units Conversion Factors
#
-# Values for these constants are drawn from IAU and IUPAC data
-# unless otherwise noted:
+# Values for these constants, unless otherwise noted, are drawn from IAU,
+# IUPAC, and NIST data, whichever is newer.
# http://maia.usno.navy.mil/NSFA/IAU2009_consts.html
# http://goldbook.iupac.org/list_goldbook_phys_constants_defs.html
+# http://physics.nist.gov/cuu/Constants/index.html
# Masses
-mass_hydrogen_cgs = 1.674534e-24 # g
-mass_electron_cgs = 9.1093898e-28 # g
-amu_cgs = 1.6605402e-24 # g
+mass_electron_cgs = 9.109382-28 # g
+amu_cgs = 1.660538921e-24 # g
+mass_hydrogen_cgs = 1.007947*amu_cgs # g
mass_sun_cgs = 1.98841586e33 # g
# Velocities
speed_of_light_cgs = 2.99792458e10 # cm/s, exact
@@ -22,10 +23,10 @@
charge_proton_cgs = 4.8032056e-10 # esu = 1.602176487e-19 Coulombs
# Physical Constants
-boltzmann_constant_cgs = 1.3806504e-16 # erg K^-1
-gravitational_constant_cgs = 6.67428e-8 # cm^3 g^-1 s^-2
-planck_constant_cgs = 6.62606896e-27 # erg s
-stefan_boltzmann_constant_cgs = 5.67051e-5 # erg cm^-2 s^-1 K^-4
+boltzmann_constant_cgs = 1.3806488e-16 # erg K^-1
+gravitational_constant_cgs = 6.67384e-8 # cm^3 g^-1 s^-2
+planck_constant_cgs = 6.62606957e-27 # erg s
+stefan_boltzmann_constant_cgs = 5.670373e-5 # erg cm^-2 s^-1 K^-4
# The following value was calcualted assuming H = 100 km/s/Mpc.
# To get the correct value for your cosmological parameters,
# you'll need to multiply through by h^2
@@ -69,16 +70,17 @@
cm_per_pc = 1.0 / pc_per_cm
# time
+# "IAU Style Manual" by G.A. Wilkins, Comm. 5, in IAU Transactions XXB (1989)
sec_per_Gyr = 31.5576e15
sec_per_Myr = 31.5576e12
sec_per_kyr = 31.5576e9
-sec_per_year = 31.5576e6 # "IAU Style Manual" by G.A. Wilkins, Comm. 5, in IAU Transactions XXB (1989)
+sec_per_year = 31.5576e6
sec_per_day = 86400.0
sec_per_hr = 3600.0
day_per_year = 365.25
# temperature / energy
-erg_per_eV = 1.602176487e-12 # http://goldbook.iupac.org/E02014.html
+erg_per_eV = 1.602176562e-12
erg_per_keV = erg_per_eV * 1.0e3
K_per_keV = erg_per_keV / boltzmann_constant_cgs
keV_per_K = 1.0 / K_per_keV
https://bitbucket.org/yt_analysis/yt/commits/5f323e7a7be2/
Changeset: 5f323e7a7be2
Branch: yt
User: ngoldbaum
Date: 2013-07-16 06:36:31
Summary: Updating the gold standard to gold009.
Affected #: 1 file
diff -r f59d39a2ef5320dd6cfa72c21697ba3d18b8cf3e -r 5f323e7a7be2d202c4d653a5e5f5e0eff57a41a8 yt/config.py
--- a/yt/config.py
+++ b/yt/config.py
@@ -62,7 +62,7 @@
notebook_password = '',
answer_testing_tolerance = '3',
answer_testing_bitwise = 'False',
- gold_standard_filename = 'gold008',
+ gold_standard_filename = 'gold009',
local_standard_filename = 'local001',
sketchfab_api_key = 'None'
)
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