mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-28 14:15:42 -04:00
Added ability to set material otf file to None
This commit is contained in:
parent
8c3789cb78
commit
9decb858e2
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue