Restore vectorised integrate deprecated behaviour

This commit is contained in:
Juan Nunez-Iglesias
2015-12-13 16:25:29 +11:00
parent 3899c571b7
commit 0bc3ad8f79
+2
View File
@@ -85,6 +85,8 @@ def integrate(ii, start, end, *args):
"deprecated, and will be phased out in release 0.14. "
"The new syntax is "
"'integrate(ii, (r0, c0), (r1, c1))'.")
if isinstance(start, collections.Iterable):
rows = len(start)
args = (start, end) + args
start = np.array(args[:int(len(args)/2)]).T
end = np.array(args[int(len(args)/2):]).T