mirror of
https://github.com/openmc-dev/openmc.git
synced 2026-07-26 21:25:36 -04:00
2 more revision nmbers to update in python api
This commit is contained in:
parent
7543e9df66
commit
596c819be7
2 changed files with 4 additions and 4 deletions
|
|
@ -43,11 +43,11 @@ class Particle(object):
|
|||
if 'filetype' not in self._f or self._f[
|
||||
'filetype'].value.decode() != 'particle restart':
|
||||
raise IOError('{} is not a particle restart file.'.format(filename))
|
||||
if self._f['revision'].value != 1:
|
||||
if self._f['revision'].value != 2:
|
||||
raise IOError('Particle restart file has a file revision of {} '
|
||||
'which is not consistent with the revision this '
|
||||
'version of OpenMC expects ({}).'.format(
|
||||
self._f['revision'].value, 1))
|
||||
self._f['revision'].value, 2))
|
||||
|
||||
@property
|
||||
def current_batch(self):
|
||||
|
|
|
|||
|
|
@ -103,11 +103,11 @@ class StatePoint(object):
|
|||
raise IOError('Could not read statepoint file. This most likely '
|
||||
'means the statepoint file was produced by a different '
|
||||
'version of OpenMC than the one you are using.')
|
||||
if self._f['revision'].value != 14:
|
||||
if self._f['revision'].value != 15:
|
||||
raise IOError('Statepoint file has a file revision of {} '
|
||||
'which is not consistent with the revision this '
|
||||
'version of OpenMC expects ({}).'.format(
|
||||
self._f['revision'].value, 14))
|
||||
self._f['revision'].value, 15))
|
||||
|
||||
# Set flags for what data has been read
|
||||
self._meshes_read = False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue