2 more revision nmbers to update in python api

This commit is contained in:
Adam Nelson 2016-02-06 15:54:53 -05:00
parent 7543e9df66
commit 596c819be7
2 changed files with 4 additions and 4 deletions

View file

@ -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):

View file

@ -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