From 40552ce712e683a008757bc6d65c76a1e7e79ecc Mon Sep 17 00:00:00 2001 From: William DeWitt Date: Thu, 17 Dec 2020 16:24:31 -0800 Subject: [PATCH] int division, closes #63 (#64) --- mushi/ksfs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mushi/ksfs.py b/mushi/ksfs.py index 3beaa75..7da418b 100644 --- a/mushi/ksfs.py +++ b/mushi/ksfs.py @@ -234,7 +234,7 @@ def infer_history(self, # noqa: C901 if folded: x += x[::-1] # fold the data spectrum if self.n % 2 == 0: - x[self.n // 2 - 1] /= 2 + x[self.n // 2 - 1] //= 2 if mask is None: mask = onp.array([True for _ in range(self.n - 1)]) mask = onp.logical_and(mask, mask[::-1]) # fold the mask