diff --git a/simpeg/directives/_save_geoh5.py b/simpeg/directives/_save_geoh5.py index c9e3cdbbff..3009d7fbd9 100644 --- a/simpeg/directives/_save_geoh5.py +++ b/simpeg/directives/_save_geoh5.py @@ -289,14 +289,14 @@ def write(self, iteration: int, values: list[np.ndarray] = None): # flake8: noq } ) # Re-assign the data type - if channel not in self.data_type[component].keys(): - self.data_type[component][channel] = data.entity_type + if ii not in self.data_type[component].keys(): + self.data_type[component][ii] = data.entity_type type_name = f"{self._attribute_type}_{component}" + f"_{label}" data.entity_type.name = type_name else: data.entity_type = w_s.find_type( - self.data_type[component][channel].uid, - type(self.data_type[component][channel]), + self.data_type[component][ii].uid, + type(self.data_type[component][ii]), )