Include the pyx files

This commit is contained in:
Steven Silvester
2016-01-30 08:59:31 -06:00
parent b710bd21d2
commit 6170a7e532
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -304,7 +304,7 @@ cdef class MCP:
self.flat_costs = costs.astype(FLOAT_D, copy=False).ravel('F')
except TypeError:
self.flat_costs = costs.astype(FLOAT_D).flatten('F')
warnings.warn('Upgrading NumPy should decrease memory usage and increase speed.', Warning)
warnings.warn('Upgrading NumPy should decrease memory usage and increase speed.', Warning, stacklevel=2)
size = self.flat_costs.shape[0]
self.flat_cumulative_costs = np.empty(size, dtype=FLOAT_D)
self.dim = len(costs.shape)
+1 -1
View File
@@ -49,7 +49,7 @@ cdef void get_bginfo(background_val, bginfo *ret) except *:
if background_val is None:
warnings.warn(DeprecationWarning(
'The default value for `background` will change to 0 in v0.12'
))
), stacklevel=2)
ret.background_val = -1
else:
ret.background_val = background_val