From 4051e22443badbba8e6122fe69f7d1d44823b5a8 Mon Sep 17 00:00:00 2001 From: domfournier Date: Mon, 25 May 2026 11:32:14 -0700 Subject: [PATCH] Use index instead of channel value --- simpeg/directives/_save_geoh5.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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]), )