Fix reading CELL records with id 14

This commit is contained in:
Jan Petykiewicz 2018-07-21 13:41:19 -07:00
parent 65e03d67d6
commit daf301dfce

View File

@ -179,7 +179,7 @@ class OasisLayout:
elif record_id in range(15, 29) or record_id in (32, 33): elif record_id in range(15, 29) or record_id in (32, 33):
if not file_state.within_cell: if not file_state.within_cell:
raise Exception('Geometry outside Cell') raise Exception('Geometry outside Cell')
elif record_id == 13: elif record_id in (13, 14):
file_state.within_cell = True file_state.within_cell = True
else: else:
raise InvalidRecordError('Unknown record id: {}'.format(record_id)) raise InvalidRecordError('Unknown record id: {}'.format(record_id))