From 5708ff9d777dc4264af39b043b6c173db149be85 Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Thu, 20 Oct 2016 09:46:29 -0400 Subject: [PATCH] converted isotopes from iterator to list for python 3 compatibility --- openmc/material.py | 1 + 1 file changed, 1 insertion(+) diff --git a/openmc/material.py b/openmc/material.py index bdb5519c6b..71dd9076e7 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -475,6 +475,7 @@ class Material(object): # Get the isotopes and their natural abundances isotopes, abundances = zip(*element.expand()) abundances = list(abundances) + isotopes = list(isotopes) n_isotopes = len(isotopes) # Create a list of atomic masses