[yt-svn] commit/yt: 2 new changesets

commits-noreply at bitbucket.org commits-noreply at bitbucket.org
Sat May 17 10:32:10 PDT 2014


2 new commits in yt:

https://bitbucket.org/yt_analysis/yt/commits/1d404907a58f/
Changeset:   1d404907a58f
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-05-12 20:18:33
Summary:     Switch to _units.

This speeds up runtime for the script I was profiling from 60 seconds to 45
seconds.
Affected #:  1 file

diff -r 80b6a3399f45da6e13828a947813cbe0e057f63d -r 1d404907a58f724133ba03a1c597c638f0670b97 yt/units/yt_array.py
--- a/yt/units/yt_array.py
+++ b/yt/units/yt_array.py
@@ -252,7 +252,7 @@
                     "Perhaps you meant to do something like this instead: \n"
                     "ds.arr(%s, \"%s\")" % (input_array, input_units)
                     )
-        if _astropy.units is not None:
+        if _astropy._units is not None:
             if isinstance(input_array, _astropy.units.quantity.Quantity):
                 return cls.from_astropy(input_array)
         if isinstance(input_array, YTArray):


https://bitbucket.org/yt_analysis/yt/commits/5f2c6b6da9cf/
Changeset:   5f2c6b6da9cf
Branch:      yt-3.0
User:        MatthewTurk
Date:        2014-05-17 19:32:03
Summary:     Merged in MatthewTurk/yt/yt-3.0 (pull request #899)

Change how we check for on-demand imports
Affected #:  1 file

diff -r 88056872e1bd42b4a657201277526e5e0d67a8ac -r 5f2c6b6da9cf36ca09548a2c5c6286a77032d2d9 yt/units/yt_array.py
--- a/yt/units/yt_array.py
+++ b/yt/units/yt_array.py
@@ -252,7 +252,7 @@
                     "Perhaps you meant to do something like this instead: \n"
                     "ds.arr(%s, \"%s\")" % (input_array, input_units)
                     )
-        if _astropy.units is not None:
+        if _astropy._units is not None:
             if isinstance(input_array, _astropy.units.quantity.Quantity):
                 return cls.from_astropy(input_array)
         if isinstance(input_array, YTArray):

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