Skip to content

Commit 7a8c105

Browse files
authored
Switch to libc.math import for infinity (#931)
* Switch to recommended import * Consilidate imports
1 parent d068937 commit 7a8c105

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/glum/_cd_fast.pyx

+1-2
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,9 @@
77
# License: BSD 3 clause
88
# Substantial modifications by Ben Thompson <[email protected]>
99
#
10-
from libc.math cimport fabs
10+
from libc.math cimport INFINITY, fabs
1111
cimport numpy as np
1212
import numpy as np
13-
from numpy.math cimport INFINITY
1413

1514
from cython cimport floating
1615
from cython.parallel import prange

0 commit comments

Comments
 (0)