pc494 / pyxem

This is pc494's fork of pyxem.
GNU General Public License v3.0
1 stars 2 forks source link

Refactor rounding code in exp_utils #3

Closed pc494 closed 6 years ago

pc494 commented 6 years ago

in expt_utils you're currently doing:

r = (r+0.5).astype(np.int)

seems much cleaner to use:

https://docs.scipy.org/doc/numpy-1.13.0/reference/generated/numpy.rint.html

with correct dtype.

pc494 commented 6 years ago

Closed by pyxem commit bc707a3