climate-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From good...@apache.org
Subject svn commit: r1495493 - /incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py
Date Fri, 21 Jun 2013 16:15:26 GMT
Author: goodman
Date: Fri Jun 21 16:15:26 2013
New Revision: 1495493

URL: http://svn.apache.org/r1495493
Log:
CLIMATE-126: Replaced deprecated numpy function

Modified:
    incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py

Modified: incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py
URL: http://svn.apache.org/viewvc/incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py?rev=1495493&r1=1495492&r2=1495493&view=diff
==============================================================================
--- incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py (original)
+++ incubator/climate/trunk/rcmet/src/main/python/rcmes/toolkit/process.py Fri Jun 21 16:15:26
2013
@@ -894,7 +894,7 @@ def extract_sub_time_selection(allTimes,
     i = 0     # counter for allTimes
     subi = 0  # counter for subTimes
     for t in allTimes:
-        if(np.setmember1d(allTimes, subTimes)):
+        if(np.in1d(allTimes, subTimes)):
             subdata[subi, :, :] = data[i, :, :]
             subi += 1
         i += 1



Mime
View raw message