Addressing case where is not present in surface HDF5 groups.

This commit is contained in:
Patrick Shriwise 2021-06-29 11:16:29 -05:00
parent 263addffc1
commit f2e0af378f

View file

@ -454,8 +454,8 @@ class Surface(IDManagerMixin, ABC):
"""
# If this is a DAGMC surface, do nothing for now
geom_type = group['geom_type'][()].decode()
if geom_type == 'dagmc':
geom_type = group.get('geom_type')
if geom_type and geom_type[()].decode() == 'dagmc':
return
surface_id = int(group.name.split('/')[-1].lstrip('surface '))