From 9e9e401aaad77bad96630b5cfd8a06c4607cb332 Mon Sep 17 00:00:00 2001 From: Sam Shaner Date: Wed, 9 Nov 2016 22:23:59 -0500 Subject: [PATCH] removed import of re in material.py --- openmc/material.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/openmc/material.py b/openmc/material.py index abd5467b81..8003cc1929 100644 --- a/openmc/material.py +++ b/openmc/material.py @@ -4,7 +4,6 @@ from numbers import Real, Integral import warnings from xml.etree import ElementTree as ET import sys -import re from six import string_types @@ -607,7 +606,9 @@ class Material(object): moles += vals[1] / openmc.data.atomic_mass(nuc) mass += vals[1] - return (mass / moles) + # Compute and return the molar mass + molar_mass = mass / moles + return molar_mass def _get_nuclide_xml(self, nuclide, distrib=False): xml_element = ET.Element("nuclide")