From 3fe577c934e51dc9d5a7b3c2216579b7bfd12171 Mon Sep 17 00:00:00 2001 From: Paul Romano Date: Wed, 29 Apr 2015 08:55:45 +0700 Subject: [PATCH] Fix Python 3 support in statepoint.py --- src/utils/openmc/statepoint.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/utils/openmc/statepoint.py b/src/utils/openmc/statepoint.py index 7f5871023b..ad74ca1fd6 100644 --- a/src/utils/openmc/statepoint.py +++ b/src/utils/openmc/statepoint.py @@ -1,5 +1,6 @@ import copy import struct +import sys import numpy as np import scipy.stats @@ -7,6 +8,9 @@ import scipy.stats import openmc from openmc.constants import * +if sys.version > '3': + long = int + class SourceSite(object):