diff --git a/lib/iris/analysis/_scipy_interpolate.py b/lib/iris/analysis/_scipy_interpolate.py index 0273d69785..388726c791 100644 --- a/lib/iris/analysis/_scipy_interpolate.py +++ b/lib/iris/analysis/_scipy_interpolate.py @@ -229,7 +229,7 @@ def compute_interp_weights(self, xi, method=None): for ci, cw in corner: weights[i::n_src_values_per_result_value] *= cw - n_src_values = np.prod(map(len, self.grid)) + n_src_values = np.prod(list(map(len, self.grid))) sparse_matrix = csr_matrix((weights, col_indices, row_ptrs), shape=(n_result_values, n_src_values))