From 15879977dc07c68f484602412ad0b077824a7a0a Mon Sep 17 00:00:00 2001 From: CBroz1 Date: Tue, 22 Oct 2024 10:03:58 -0500 Subject: [PATCH] Remove debug --- src/spyglass/utils/nwb_hash.py | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/spyglass/utils/nwb_hash.py b/src/spyglass/utils/nwb_hash.py index ce3ffb619..c5c5081d4 100644 --- a/src/spyglass/utils/nwb_hash.py +++ b/src/spyglass/utils/nwb_hash.py @@ -49,12 +49,7 @@ def collect_names(self, file): """Collects all object names in the file.""" def collect_items(name, obj): - if isinstance(file.get(name, getclass=True), h5py.SoftLink): - print("SoftLink:", name) - items_to_process.append((name, file.get(name, getclass=True))) - __import__("pdb").set_trace() - else: - items_to_process.append((name, obj)) + items_to_process.append((name, obj)) items_to_process = [] file.visititems(collect_items) @@ -111,8 +106,6 @@ def compute_hash(self) -> str: desc=self.file.filename.split("/")[-1].split(".")[0], disable=not self.verbose, ): - if "basic" in name: - __import__("pdb").set_trace() self.hashed.update(name.encode()) for attr_key in sorted(obj.attrs): attr_value = obj.attrs[attr_key] @@ -125,7 +118,6 @@ def compute_hash(self) -> str: elif isinstance(obj, h5py.SoftLink): # TODO: Check that this works self.hashed.update(obj.path.encode()) - print("SoftLink:", obj.path) elif isinstance(obj, h5py.Group): for k, v in obj.items(): self.hashed.update(k.encode())