mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-29 06:35:48 -04:00
Changed Python API SettingsFile not run_mode in to more Pythonic run_mode not in
This commit is contained in:
parent
fca18c7de4
commit
f61408fb21
1 changed files with 1 additions and 1 deletions
|
|
@ -409,7 +409,7 @@ class SettingsFile(object):
|
|||
|
||||
@run_mode.setter
|
||||
def run_mode(self, run_mode):
|
||||
if not 'run_mode' in ['eigenvalue', 'fixed source']:
|
||||
if 'run_mode' not in ['eigenvalue', 'fixed source']:
|
||||
msg = 'Unable to set run mode to "{0}". Only "eigenvalue" ' \
|
||||
'and "fixed source" are supported."'.format(run_mode)
|
||||
raise ValueError(msg)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue