From 62415146fcd632663bd201a8891d1971cd10a8f2 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 6 Aug 2014 21:12:54 -0400 Subject: [PATCH] Use integer division in statepoint_meshplot.py. --- src/utils/statepoint_meshplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils/statepoint_meshplot.py b/src/utils/statepoint_meshplot.py index d62d9337d9..f557a256e6 100755 --- a/src/utils/statepoint_meshplot.py +++ b/src/utils/statepoint_meshplot.py @@ -1,6 +1,6 @@ #!/usr/bin/env python -from __future__ import print_function +from __future__ import print_function, division from sys import argv from math import sqrt @@ -58,7 +58,7 @@ for t in sp.tallies: nx, ny, nz = m.dimension # Calculate number of score bins - ns = t.total_score_bins * t.total_filter_bins / (nx*ny*nz) + ns = t.total_score_bins * t.total_filter_bins // (nx*ny*nz) assert n_bins == nx*ny*nz*ns # Create lists for tallies