From 5fb1c40060878057614d456319839667d4718258 Mon Sep 17 00:00:00 2001 From: Fabian Zills Date: Fri, 6 Dec 2024 21:53:22 +0100 Subject: [PATCH] remove debug prints --- znh5md/interface/io.py | 1 - znh5md/interface/read.py | 7 ------- 2 files changed, 8 deletions(-) diff --git a/znh5md/interface/io.py b/znh5md/interface/io.py index 280bc84..1f1f1ff 100644 --- a/znh5md/interface/io.py +++ b/znh5md/interface/io.py @@ -104,7 +104,6 @@ def __getitem__( # separately from the OSError h5py raises raise except OSError as err: - print(err) raise IndexError("Index out of range") def extend(self, frames: list[ase.Atoms]) -> None: diff --git a/znh5md/interface/read.py b/znh5md/interface/read.py index 3954ec9..785021a 100644 --- a/znh5md/interface/read.py +++ b/znh5md/interface/read.py @@ -182,10 +182,6 @@ def getitem( observables = f[f"/observables/{self.particles_group}"] process_observables(self, frames, observables, index) - print(len(frames)) - print(particles) - print(is_single_item) - return list(frames) if not is_single_item else frames[0] @@ -346,15 +342,12 @@ def process_observables(self, frames: Frames, observables, index) -> None: frames, grp_name, grp["value"][index], origin, self.use_ase_calc ) except (OSError, IndexError) as err: - print(err) # ??? why is this not triggering? pass # Handle backfilling for invalid values except KeyError as err: - print(err) raise KeyError( f"Key '{grp_name}' does not seem to be a valid H5MD group" " - missing 'value' dataset." ) except Exception as err: - print(err) raise ValueError(f"Error processing group '{grp_name}'") from err