Skip to content

Commit

Permalink
use integer division for numpy future-proofing
Browse files Browse the repository at this point in the history
  • Loading branch information
Autoplectic committed May 10, 2016
1 parent 4501a11 commit 03755b2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dit/abstractdist.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ def brute_marginal_array(d, rvs, rv_mode=None):
# Apply nonzero, use [1] to get only the columns
nz = np.nonzero(arr)[1]
n_rows = len(marginal._sample_space)
arr = nz.reshape((n_rows, len(nz) / n_rows))
arr = nz.reshape((n_rows, len(nz) // n_rows))

return arr

Expand Down

0 comments on commit 03755b2

Please sign in to comment.