"""

Physical constants.

Copyright 2012, Casey W. Stark. See LICENSE.txt for more information.

"""

import numpy as np

from dimensionful.common_units import *

# speed of light
c = 2.99792458e10 * cm * s**-1

# Gravitational constant
G = 6.673e-8 * cm**3 * g**-1 * s**-2

# Boltzmann constant
k = 1.38064e-16 * erg * K**1

# Planck constant
h = 6.626070e-27 * erg * s
hbar = h / (2 * np.pi)

@@ -154,16 +154,59 @@
 import *
+%0Afrom dimensionful.quantity import Quantity
 %0A%0A# spee
@@ -220,16 +220,25 @@
 ght%0Ac = 
+Quantity(
 2.997924
@@ -246,21 +246,17 @@
 8e10
- *
+,
  cm 
-* s**-1
+/ s)
 %0A%0A# 
@@ -286,16 +286,25 @@
 G = 
+Quantity(
 6.673e-8
  * c
@@ -299,18 +299,17 @@
 6.673e-8
- *
+,
  cm**3 *
@@ -322,16 +322,17 @@
  * s**-2
+)
 %0A%0A# Bolt
@@ -350,16 +350,25 @@
 ant%0Ak = 
+Quantity(
 1.38064e
@@ -374,18 +374,17 @@
 e-16
- *
+,
  erg * K
 **1%0A
@@ -383,11 +383,9 @@
  * K
-**1
+)
 %0A%0A# 
@@ -404,16 +404,25 @@
 ant%0Ah = 
+Quantity(
 6.626070
@@ -429,18 +429,17 @@
 e-27
- *
+,
  erg * s
 %0Ahba
@@ -434,16 +434,17 @@
  erg * s
+)
 %0Ahbar = 

Make constants Quantity objects.