From ef2b72bc302cdff3b19d9ae050b33167d1e8c710 Mon Sep 17 00:00:00 2001
From: Philipp Schmidt <philipp.schmidt@xfel.eu>
Date: Tue, 15 Aug 2023 15:57:43 +0200
Subject: [PATCH] Ignore tableSize attribute on index groups for comparison
 between sequences

---
 src/exdf/write/sd_writer.py | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/exdf/write/sd_writer.py b/src/exdf/write/sd_writer.py
index 1f7b3bc..0aa0ab6 100644
--- a/src/exdf/write/sd_writer.py
+++ b/src/exdf/write/sd_writer.py
@@ -357,9 +357,9 @@ def get_key_attributes(sd):
                             if isinstance(v1, np.ndarray)
                             else v1 == v2
                         )
-                        for v1, v2
-                        in zip(existing_attrs.values(), path_attrs.values())
-                    ])
+                        for (k, v1), v2
+                        in zip(existing_attrs.items(), path_attrs.values())
+                        if k != 'tableSize'])
 
                     if not same_keys or not same_values:
                         log.debug(f'Attributes for {sd.source}.{path} in '
-- 
GitLab