Skip to content
This repository was archived by the owner on Mar 19, 2021. It is now read-only.

Commit c6ad85d

Browse files
authored
Merge pull request #333 from ariddell/feature/issue-303
Handle unsigned integers in data
2 parents b003fe4 + a882721 commit c6ad85d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

pystan/misc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ def _split_data(data):
359359
# map<string, pair<vector<int>, vector<size_t>>> so prepare
360360
# them accordingly.
361361
for k, v in data.items():
362-
if np.issubdtype(np.asarray(v).dtype, int):
362+
if np.issubdtype(np.asarray(v).dtype, np.integer):
363363
data_i.update({k.encode('utf-8'): np.asarray(v, dtype=int)})
364364
elif np.issubdtype(np.asarray(v).dtype, float):
365365
data_r.update({k.encode('utf-8'): np.asarray(v, dtype=float)})

0 commit comments

Comments
 (0)