[cig-commits] r7918 - short/3D/PyLith/trunk/playpen/euler

willic3 at geodynamics.org willic3 at geodynamics.org
Thu Aug 30 13:48:40 PDT 2007


Author: willic3
Date: 2007-08-30 13:48:40 -0700 (Thu, 30 Aug 2007)
New Revision: 7918

Modified:
   short/3D/PyLith/trunk/playpen/euler/euler.py
Log:
Fixed units import.


Modified: short/3D/PyLith/trunk/playpen/euler/euler.py
===================================================================
--- short/3D/PyLith/trunk/playpen/euler/euler.py	2007-08-30 20:45:05 UTC (rev 7917)
+++ short/3D/PyLith/trunk/playpen/euler/euler.py	2007-08-30 20:48:40 UTC (rev 7918)
@@ -58,8 +58,9 @@
     ## @li \b dest_coordsys Coordinate system to convert to.
 
     import pyre.inventory
-    import pyre.units.angle
-    import pyre.units.length
+    from pyre.units.angle import deg
+    from pyre.units.length import m
+    from pyre.units.length import km
 
     from spatialdata.geocoords.CSGeoProj import CSGeoProj
     srcCoordSys = pyre.inventory.facility("src_coordsys",
@@ -327,7 +328,7 @@
     Computes velocities in local Cartesian system from rotation about an
     Euler pole.
     """
-    import pyre.units.angle
+    from pyre.units.angle import deg
     lonDeg = pointsLL[0]*deg
     latDeg = pointsLL[1]*deg
     lonPoint = lonDeg.value



More information about the cig-commits mailing list