Ensuring that surface names are read from the HDF5 format.

This commit is contained in:
Patrick Shriwise 2021-06-29 21:05:03 -05:00
parent ef70e12142
commit 25cf7a3e97

View file

@ -432,6 +432,7 @@ class Surface(IDManagerMixin, ABC):
kwargs = {}
kwargs['surface_id'] = int(elem.get('id'))
kwargs['boundary_type'] = elem.get('boundary', 'transmission')
kwargs['name'] = elem.get('name')
coeffs = [float(x) for x in elem.get('coeffs').split()]
kwargs.update(dict(zip(cls._coeff_keys, coeffs)))