From 9decb858e2183c0b2139ef1422455bc489a15f4b Mon Sep 17 00:00:00 2001 From: Nicholas Horelik Date: Mon, 1 Dec 2014 23:52:29 -0500 Subject: [PATCH] Added ability to set material otf file to None --- src/utils/openmc/material.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/openmc/material.py b/src/utils/openmc/material.py index 7034feb6ea..914cb154a1 100644 --- a/src/utils/openmc/material.py +++ b/src/utils/openmc/material.py @@ -224,7 +224,7 @@ class Material(object): warnings.warn('This feature is not yet implemented in a release ' \ 'version of openmc') - if not is_string(name): + if not is_string(name) and not name is None: msg = 'Unable to add OTF material file to Material ID={0} with a ' \ 'non-string name {1}'.format(self._id, name) raise ValueError(msg)