Skip to content

Commit

Permalink
np.float -> np.float64 #47
Browse files Browse the repository at this point in the history
  • Loading branch information
rajeshrinet committed Jul 11, 2023
1 parent 34e2117 commit 9fb75aa
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion pyross/contactMatrix.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import os
from cython.parallel import prange


DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t
@cython.wraparound(False)
@cython.boundscheck(False)
Expand Down
2 changes: 1 addition & 1 deletion pyross/control.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import numpy as np
cimport numpy as np
cimport cython

DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t
import pyross.stochastic

Expand Down
2 changes: 1 addition & 1 deletion pyross/deterministic.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import pyross.utils
import warnings


DTYPE = np.float
DTYPE = np.float64
from libc.stdlib cimport malloc, free


Expand Down
2 changes: 1 addition & 1 deletion pyross/evidence.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
import pyross.utils
from pyross.utils_python import Prior

DTYPE = np.float
DTYPE = np.float64

def get_parameters(estimator, x, Tf, prior_dict, contactMatrix=None, generator=None, intervention_fun=None,
tangent=False):
Expand Down
2 changes: 1 addition & 1 deletion pyross/forecast.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import numpy as np
cimport numpy as np
cimport cpython
#from cython.parallel import prange
DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t
from numpy.math cimport INFINITY

Expand Down
2 changes: 1 addition & 1 deletion pyross/hybrid.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import numpy as np
cimport numpy as np
cimport cpython
#from cython.parallel import prange
DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t

import pyross.stochastic as stochastic
Expand Down
2 changes: 1 addition & 1 deletion pyross/inference.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ from libc.math cimport sqrt, log, INFINITY
cdef double PI = 3.14159265359


DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t
ctypedef np.uint8_t BOOL_t

Expand Down
2 changes: 1 addition & 1 deletion pyross/stochastic.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ cimport numpy as np
import os, time
cimport cpython
import pyross.utils
DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t
from numpy.math cimport INFINITY
import warnings
Expand Down
2 changes: 1 addition & 1 deletion pyross/tsi/deterministic.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import matplotlib.pyplot as plt
from scipy.integrate import odeint
import nlopt

DTYPE = np.float
DTYPE = np.float64

cdef class CommonMethods:
"""
Expand Down
2 changes: 1 addition & 1 deletion pyross/utils.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,7 @@ def age_dep_rates(rate, int M, str name, bint check_length=True):



DTYPE = np.float
DTYPE = np.float64
ctypedef np.float_t DTYPE_t

cpdef forward_euler_integration(f, double [:] x, double t1, double t2, Py_ssize_t steps, Py_ssize_t inter_steps=1):
Expand Down

0 comments on commit 9fb75aa

Please sign in to comment.