Skip to content

Commit 6434d57

Browse files
committed
Merge pull request #318 from bashtage/add-import-array
MAINT: Add import array
2 parents 81ceedd + c2fe9e3 commit 6434d57

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

arch/bootstrap/_samplers.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ import numpy as np
66
cimport numpy as np
77
cimport cython
88

9+
np.import_array()
10+
911
def stationary_bootstrap_sample(np.int64_t[:] indices,
1012
double[:] u,
1113
double p):

arch/univariate/recursions.pyx

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ cdef extern from 'float.h':
1919

2020
cdef double LNSIGMA_MAX = log(DBL_MAX)
2121

22+
np.import_array()
23+
2224
cdef inline bounds_check(double* sigma2, double* var_bounds):
2325
if sigma2[0] < var_bounds[0]:
2426
sigma2[0] = var_bounds[0]

doc/source/changes/4.0.txt

+4-2
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@
22
Version 4
33
=========
44

5-
Changes Since 4.9
6-
=================
5+
Release 4.10
6+
============
77
- Fixed a bug in arch_lm_test that assumed that the model data is contained in
88
a pandas Series. (:issue:`313`).
9+
- Fixed a bug that can affect use in certain environments that reload modules
10+
(:issue:`317`).
911

1012
Release 4.9
1113
===========

0 commit comments

Comments
 (0)