Skip to content

Commit

Permalink
fixup 0.2.4 release
Browse files Browse the repository at this point in the history
  • Loading branch information
mattja committed Feb 20, 2022
1 parent 01a00a4 commit 8ff5929
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion sdeint/__init__.py
Expand Up @@ -4,4 +4,4 @@
from .integrate import (SDEValueError, itoint, stratint, itoEuler, stratHeun,
itoSRI2, stratSRS2, stratKP2iS)

__version__ = '0.2.3'
__version__ = '0.2.4'
3 changes: 3 additions & 0 deletions sdeint/integrate.py
Expand Up @@ -75,6 +75,9 @@ def newfn(y, t):
else:
# Convert initial conditions to an ndarray in case they are not already
y0 = np.array(y0)
# If initial conditions are integers, assume float64 was intended.
if y0.dtype.kind == 'i':
y0 = np.array(y0, dtype=np.float64)
# determine dimension d of the system
d = len(y0)
if len(f(y0, tspan[0])) != d:
Expand Down

0 comments on commit 8ff5929

Please sign in to comment.