Skip to content

Commit

Permalink
Merge pull request #318 from bashtage/add-import-array
Browse files Browse the repository at this point in the history
MAINT: Add import array
  • Loading branch information
bashtage committed Oct 14, 2019
2 parents 81ceedd + c2fe9e3 commit 6434d57
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
2 changes: 2 additions & 0 deletions arch/bootstrap/_samplers.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ import numpy as np
cimport numpy as np
cimport cython

np.import_array()

def stationary_bootstrap_sample(np.int64_t[:] indices,
double[:] u,
double p):
Expand Down
2 changes: 2 additions & 0 deletions arch/univariate/recursions.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@ cdef extern from 'float.h':

cdef double LNSIGMA_MAX = log(DBL_MAX)

np.import_array()

cdef inline bounds_check(double* sigma2, double* var_bounds):
if sigma2[0] < var_bounds[0]:
sigma2[0] = var_bounds[0]
Expand Down
6 changes: 4 additions & 2 deletions doc/source/changes/4.0.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@
Version 4
=========

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

Release 4.9
===========
Expand Down

0 comments on commit 6434d57

Please sign in to comment.